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