fix(config) fix prejoin throwing a TypeError due to late config initialization (#10041)
This commit is contained in:
parent
b42ebf6901
commit
6b8db2ad9e
|
@ -60,7 +60,8 @@ export function getMovableButtons(width: number): Set<string> {
|
|||
*/
|
||||
export function isToolboxVisible(stateful: Object | Function) {
|
||||
const state = toState(stateful);
|
||||
const { toolbarConfig: { alwaysVisible } } = state['features/base/config'];
|
||||
const { toolbarConfig } = state['features/base/config'];
|
||||
const { alwaysVisible } = toolbarConfig || {};
|
||||
const { enabled, visible } = state['features/toolbox'];
|
||||
const participantCount = getParticipantCountWithFake(state);
|
||||
const alwaysVisibleFlag = getFeatureFlag(state, TOOLBOX_ALWAYS_VISIBLE, false);
|
||||
|
|
|
@ -39,7 +39,8 @@ export function isButtonEnabled(name: string, state: Object) {
|
|||
* otherwise.
|
||||
*/
|
||||
export function isToolboxVisible(state: Object) {
|
||||
const { iAmSipGateway, toolbarConfig: { alwaysVisible } } = state['features/base/config'];
|
||||
const { iAmSipGateway, toolbarConfig } = state['features/base/config'];
|
||||
const { alwaysVisible } = toolbarConfig || {};
|
||||
const {
|
||||
timeoutID,
|
||||
visible
|
||||
|
|
Loading…
Reference in New Issue