|
@@ -28,7 +28,7 @@ import {
|
28
|
28
|
getParticipants,
|
29
|
29
|
participantUpdated
|
30
|
30
|
} from '../../../base/participants';
|
31
|
|
-import { connect } from '../../../base/redux';
|
|
31
|
+import { connect, equals } from '../../../base/redux';
|
32
|
32
|
import { OverflowMenuItem } from '../../../base/toolbox';
|
33
|
33
|
import { getLocalVideoTrack, toggleScreensharing } from '../../../base/tracks';
|
34
|
34
|
import { VideoBlurButton } from '../../../blur';
|
|
@@ -1330,6 +1330,10 @@ function _mapStateToProps(state) {
|
1330
|
1330
|
}
|
1331
|
1331
|
}
|
1332
|
1332
|
|
|
1333
|
+ // NB: We compute the buttons again here because if URL parameters were used to
|
|
1334
|
+ // override them we'd miss it.
|
|
1335
|
+ const buttons = new Set(interfaceConfig.TOOLBAR_BUTTONS);
|
|
1336
|
+
|
1333
|
1337
|
return {
|
1334
|
1338
|
_chatOpen: state['features/chat'].isOpen,
|
1335
|
1339
|
_conference: conference,
|
|
@@ -1351,7 +1355,7 @@ function _mapStateToProps(state) {
|
1351
|
1355
|
|| sharedVideoStatus === 'start'
|
1352
|
1356
|
|| sharedVideoStatus === 'pause',
|
1353
|
1357
|
_visible: isToolboxVisible(state),
|
1354
|
|
- _visibleButtons: visibleButtons
|
|
1358
|
+ _visibleButtons: equals(visibleButtons, buttons) ? visibleButtons : buttons
|
1355
|
1359
|
};
|
1356
|
1360
|
}
|
1357
|
1361
|
|