Fixes hiding toolbar.
Receiving messages docks the toolbar to be able to see number of unread messages. We need to undock it when we read the messages. We skip undocking if we are not in video mode (on large), cause stuff like youtube video share is docking/undocking the toolbar.
This commit is contained in:
parent
f37fd15fca
commit
c483587853
|
@ -3,6 +3,7 @@
|
||||||
import {processReplacements, linkify} from './Replacement';
|
import {processReplacements, linkify} from './Replacement';
|
||||||
import CommandsProcessor from './Commands';
|
import CommandsProcessor from './Commands';
|
||||||
import ToolbarToggler from '../../toolbars/ToolbarToggler';
|
import ToolbarToggler from '../../toolbars/ToolbarToggler';
|
||||||
|
import VideoLayout from "../../videolayout/VideoLayout";
|
||||||
|
|
||||||
import UIUtil from '../../util/UIUtil';
|
import UIUtil from '../../util/UIUtil';
|
||||||
import UIEvents from '../../../../service/UI/UIEvents';
|
import UIEvents from '../../../../service/UI/UIEvents';
|
||||||
|
@ -180,6 +181,12 @@ var Chat = {
|
||||||
unreadMessages = 0;
|
unreadMessages = 0;
|
||||||
updateVisualNotification();
|
updateVisualNotification();
|
||||||
|
|
||||||
|
// Undock the toolbar when the chat is shown and if we're in a
|
||||||
|
// video mode.
|
||||||
|
if (VideoLayout.isLargeVideoVisible()) {
|
||||||
|
ToolbarToggler.dockToolbar(false);
|
||||||
|
}
|
||||||
|
|
||||||
// if we are in conversation mode focus on the text input
|
// if we are in conversation mode focus on the text input
|
||||||
// if we are not, focus on the display name input
|
// if we are not, focus on the display name input
|
||||||
if (APP.settings.getDisplayName())
|
if (APP.settings.getDisplayName())
|
||||||
|
|
Loading…
Reference in New Issue