Hide the toolbar when the the ring overlay is displayed
This commit is contained in:
parent
ff68caaa16
commit
123b5abb08
|
@ -298,7 +298,9 @@ UI.initConference = function () {
|
|||
UI.updateLocalRole(false);
|
||||
|
||||
// Once we've joined the muc show the toolbar
|
||||
ToolbarToggler.showToolbar();
|
||||
if (!RingOverlay.isDisplayed()) {
|
||||
ToolbarToggler.showToolbar();
|
||||
}
|
||||
|
||||
let displayName = config.displayJids ? id : Settings.getDisplayName();
|
||||
|
||||
|
@ -1413,14 +1415,12 @@ let bottomToolbarEnabled = null;
|
|||
|
||||
UI.showRingOverLay = function () {
|
||||
RingOverlay.show(APP.tokenData.callee);
|
||||
ToolbarToggler.setAlwaysVisibleToolbar(true);
|
||||
FilmStrip.toggleFilmStrip(false);
|
||||
};
|
||||
|
||||
UI.hideRingOverLay = function () {
|
||||
if (!RingOverlay.hide())
|
||||
return;
|
||||
ToolbarToggler.resetAlwaysVisibleToolbar();
|
||||
FilmStrip.toggleFilmStrip(true);
|
||||
};
|
||||
|
||||
|
|
|
@ -78,5 +78,14 @@ export default {
|
|||
overlay.destroy();
|
||||
overlay = null;
|
||||
return true;
|
||||
},
|
||||
/**
|
||||
* Checks whether or not the ring overlay is currently displayed.
|
||||
*
|
||||
* @returns {boolean} true if the ring overlay is currently displayed or
|
||||
* false otherwise.
|
||||
*/
|
||||
isDisplayed () {
|
||||
return overlay !== null;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue