|
|
@@ -14,7 +14,7 @@ import {
|
|
14
|
14
|
} from '../../../base/icons';
|
|
15
|
15
|
import {
|
|
16
|
16
|
getLocalParticipant,
|
|
17
|
|
- getParticipantCount, isEveryoneModerator
|
|
|
17
|
+ getParticipantCount
|
|
18
|
18
|
} from '../../../base/participants';
|
|
19
|
19
|
import { BlockAudioVideoDialog } from '../../../video-menu';
|
|
20
|
20
|
import MuteEveryonesVideoDialog
|
|
|
@@ -27,9 +27,8 @@ export const ContextMenuMore = () => {
|
|
27
|
27
|
const blockAudioVideo = useCallback(() => dispatch(openDialog(BlockAudioVideoDialog)), [ dispatch ]);
|
|
28
|
28
|
const cancel = useCallback(() => dispatch(hideDialog()), [ dispatch ]);
|
|
29
|
29
|
const { id } = useSelector(getLocalParticipant);
|
|
30
|
|
- const everyoneModerator = useSelector(isEveryoneModerator);
|
|
31
|
30
|
const participantsCount = useSelector(getParticipantCount);
|
|
32
|
|
- const showSlidingView = !everyoneModerator && participantsCount > 2;
|
|
|
31
|
+ const showSlidingView = participantsCount > 2;
|
|
33
|
32
|
const muteAllVideo = useCallback(() =>
|
|
34
|
33
|
dispatch(openDialog(MuteEveryonesVideoDialog,
|
|
35
|
34
|
{ exclude: [ id ] })),
|