|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
// @flow
|
|
|
|
|
|
|
|
|
|
import { TOOLBOX_ALWAYS_VISIBLE, getFeatureFlag } from '../base/flags'; |
|
|
|
|
import { toState } from '../base/redux'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -13,6 +14,7 @@ export function isToolboxVisible(stateful: Object | Function) { |
|
|
|
|
const state = toState(stateful); |
|
|
|
|
const { alwaysVisible, enabled, visible } = state['features/toolbox']; |
|
|
|
|
const { length: participantCount } = state['features/base/participants']; |
|
|
|
|
const flag = getFeatureFlag(state, TOOLBOX_ALWAYS_VISIBLE, false); |
|
|
|
|
|
|
|
|
|
return enabled && (alwaysVisible || visible || participantCount === 1); |
|
|
|
|
return enabled && (alwaysVisible || visible || participantCount === 1 || flag); |
|
|
|
|
} |
|
|
|
|