Browse Source

feat(native-participants-pane) removed everyonemoderator from footer context menu

master
Calin Chitu 4 years ago
parent
commit
8c20dd8e47

+ 2
- 2
react/features/participants-pane/components/native/ContextMenuMeetingParticipantDetails.js View File

@@ -172,8 +172,8 @@ const ContextMenuMeetingParticipantDetails = (
172 172
                 _isLocalModerator && (
173 173
                     <>
174 174
                         {
175
-                            _isParticipantVideoMuted
176
-                            || <TouchableOpacity
175
+                            !_isParticipantVideoMuted
176
+                            && <TouchableOpacity
177 177
                                 onPress = { muteVideo }
178 178
                                 style = { styles.contextMenuItemSection }>
179 179
                                 <Icon

+ 2
- 3
react/features/participants-pane/components/native/ContextMenuMore.js View File

@@ -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 ] })),

+ 1
- 2
react/features/participants-pane/components/native/MeetingParticipantList.js View File

@@ -27,7 +27,6 @@ export const MeetingParticipantList = () => {
27 27
     const participants = useSelector(getRemoteParticipants);
28 28
     const participantsCount = useSelector(getParticipantCountWithFake);
29 29
     const showInviteButton = useSelector(shouldRenderInviteButton);
30
-
31 30
     const { t } = useTranslation();
32 31
 
33 32
     // eslint-disable-next-line react/no-multi-comp
@@ -35,7 +34,7 @@ export const MeetingParticipantList = () => {
35 34
         <MeetingParticipantItem
36 35
             key = { id }
37 36
             /* eslint-disable-next-line react/jsx-no-bind */
38
-            onPress = { () => !localParticipant && dispatch(showContextMenuDetails(id)) }
37
+            onPress = { () => dispatch(showContextMenuDetails(id)) }
39 38
             participantID = { id } />
40 39
     );
41 40
 

+ 1
- 3
react/features/participants-pane/components/native/ParticipantsPane.js View File

@@ -11,7 +11,6 @@ import { Icon, IconClose, IconHorizontalPoints } from '../../../base/icons';
11 11
 import { JitsiModal } from '../../../base/modal';
12 12
 import {
13 13
     getParticipantCount,
14
-    isEveryoneModerator,
15 14
     isLocalParticipantModerator
16 15
 } from '../../../base/participants';
17 16
 import MuteEveryoneDialog
@@ -34,8 +33,7 @@ const ParticipantsPane = () => {
34 33
     const closePane = useCallback(() => dispatch(close()), [ dispatch ]);
35 34
     const isLocalModerator = useSelector(isLocalParticipantModerator);
36 35
     const participantsCount = useSelector(getParticipantCount);
37
-    const everyoneModerator = useSelector(isEveryoneModerator);
38
-    const showContextMenu = !everyoneModerator && participantsCount > 2;
36
+    const showContextMenu = participantsCount > 2;
39 37
     const muteAll = useCallback(() => dispatch(openDialog(MuteEveryoneDialog)),
40 38
         [ dispatch ]);
41 39
     const { t } = useTranslation();

Loading…
Cancel
Save