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

This commit is contained in:
Calin Chitu 2021-07-14 12:25:10 +03:00 committed by Hristo Terezov
parent fefe451180
commit 8c20dd8e47
4 changed files with 6 additions and 10 deletions

View File

@ -172,8 +172,8 @@ const ContextMenuMeetingParticipantDetails = (
_isLocalModerator && (
<>
{
_isParticipantVideoMuted
|| <TouchableOpacity
!_isParticipantVideoMuted
&& <TouchableOpacity
onPress = { muteVideo }
style = { styles.contextMenuItemSection }>
<Icon

View File

@ -14,7 +14,7 @@ import {
} from '../../../base/icons';
import {
getLocalParticipant,
getParticipantCount, isEveryoneModerator
getParticipantCount
} from '../../../base/participants';
import { BlockAudioVideoDialog } from '../../../video-menu';
import MuteEveryonesVideoDialog
@ -27,9 +27,8 @@ export const ContextMenuMore = () => {
const blockAudioVideo = useCallback(() => dispatch(openDialog(BlockAudioVideoDialog)), [ dispatch ]);
const cancel = useCallback(() => dispatch(hideDialog()), [ dispatch ]);
const { id } = useSelector(getLocalParticipant);
const everyoneModerator = useSelector(isEveryoneModerator);
const participantsCount = useSelector(getParticipantCount);
const showSlidingView = !everyoneModerator && participantsCount > 2;
const showSlidingView = participantsCount > 2;
const muteAllVideo = useCallback(() =>
dispatch(openDialog(MuteEveryonesVideoDialog,
{ exclude: [ id ] })),

View File

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

View File

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