mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(chat): Improve responsiveness.
* Fix toolbox buttons not displaying properly when chat is open. * Open chat in fullscreen dialog past custom thresholds when mobile/desktop toolbox would become unusable due to chat * Remove mobile chat check when displaying toolbox
This commit is contained in:
committed by
GitHub
parent
1ab0f1993a
commit
43e655b619
@@ -1,7 +1,6 @@
|
||||
// @flow
|
||||
|
||||
import { hasAvailableDevices } from '../base/devices';
|
||||
import { isMobileBrowser } from '../base/environment/utils';
|
||||
|
||||
declare var interfaceConfig: Object;
|
||||
|
||||
@@ -49,10 +48,8 @@ export function isToolboxVisible(state: Object) {
|
||||
visible
|
||||
} = state['features/toolbox'];
|
||||
const { audioSettingsVisible, videoSettingsVisible } = state['features/settings'];
|
||||
const { isOpen } = state['features/chat'];
|
||||
const isMobileChatOpen = isMobileBrowser() && isOpen;
|
||||
|
||||
return Boolean(!isMobileChatOpen && !iAmSipGateway && (timeoutID || visible || alwaysVisible
|
||||
return Boolean(!iAmSipGateway && (timeoutID || visible || alwaysVisible
|
||||
|| audioSettingsVisible || videoSettingsVisible));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user