feat(native-participants-pane) removed everyonemoderator from footer context menu
This commit is contained in:
parent
fefe451180
commit
8c20dd8e47
|
@ -172,8 +172,8 @@ const ContextMenuMeetingParticipantDetails = (
|
||||||
_isLocalModerator && (
|
_isLocalModerator && (
|
||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
_isParticipantVideoMuted
|
!_isParticipantVideoMuted
|
||||||
|| <TouchableOpacity
|
&& <TouchableOpacity
|
||||||
onPress = { muteVideo }
|
onPress = { muteVideo }
|
||||||
style = { styles.contextMenuItemSection }>
|
style = { styles.contextMenuItemSection }>
|
||||||
<Icon
|
<Icon
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
} from '../../../base/icons';
|
} from '../../../base/icons';
|
||||||
import {
|
import {
|
||||||
getLocalParticipant,
|
getLocalParticipant,
|
||||||
getParticipantCount, isEveryoneModerator
|
getParticipantCount
|
||||||
} from '../../../base/participants';
|
} from '../../../base/participants';
|
||||||
import { BlockAudioVideoDialog } from '../../../video-menu';
|
import { BlockAudioVideoDialog } from '../../../video-menu';
|
||||||
import MuteEveryonesVideoDialog
|
import MuteEveryonesVideoDialog
|
||||||
|
@ -27,9 +27,8 @@ export const ContextMenuMore = () => {
|
||||||
const blockAudioVideo = useCallback(() => dispatch(openDialog(BlockAudioVideoDialog)), [ dispatch ]);
|
const blockAudioVideo = useCallback(() => dispatch(openDialog(BlockAudioVideoDialog)), [ dispatch ]);
|
||||||
const cancel = useCallback(() => dispatch(hideDialog()), [ dispatch ]);
|
const cancel = useCallback(() => dispatch(hideDialog()), [ dispatch ]);
|
||||||
const { id } = useSelector(getLocalParticipant);
|
const { id } = useSelector(getLocalParticipant);
|
||||||
const everyoneModerator = useSelector(isEveryoneModerator);
|
|
||||||
const participantsCount = useSelector(getParticipantCount);
|
const participantsCount = useSelector(getParticipantCount);
|
||||||
const showSlidingView = !everyoneModerator && participantsCount > 2;
|
const showSlidingView = participantsCount > 2;
|
||||||
const muteAllVideo = useCallback(() =>
|
const muteAllVideo = useCallback(() =>
|
||||||
dispatch(openDialog(MuteEveryonesVideoDialog,
|
dispatch(openDialog(MuteEveryonesVideoDialog,
|
||||||
{ exclude: [ id ] })),
|
{ exclude: [ id ] })),
|
||||||
|
|
|
@ -27,7 +27,6 @@ export const MeetingParticipantList = () => {
|
||||||
const participants = useSelector(getRemoteParticipants);
|
const participants = useSelector(getRemoteParticipants);
|
||||||
const participantsCount = useSelector(getParticipantCountWithFake);
|
const participantsCount = useSelector(getParticipantCountWithFake);
|
||||||
const showInviteButton = useSelector(shouldRenderInviteButton);
|
const showInviteButton = useSelector(shouldRenderInviteButton);
|
||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
// eslint-disable-next-line react/no-multi-comp
|
// eslint-disable-next-line react/no-multi-comp
|
||||||
|
@ -35,7 +34,7 @@ export const MeetingParticipantList = () => {
|
||||||
<MeetingParticipantItem
|
<MeetingParticipantItem
|
||||||
key = { id }
|
key = { id }
|
||||||
/* eslint-disable-next-line react/jsx-no-bind */
|
/* eslint-disable-next-line react/jsx-no-bind */
|
||||||
onPress = { () => !localParticipant && dispatch(showContextMenuDetails(id)) }
|
onPress = { () => dispatch(showContextMenuDetails(id)) }
|
||||||
participantID = { id } />
|
participantID = { id } />
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ import { Icon, IconClose, IconHorizontalPoints } from '../../../base/icons';
|
||||||
import { JitsiModal } from '../../../base/modal';
|
import { JitsiModal } from '../../../base/modal';
|
||||||
import {
|
import {
|
||||||
getParticipantCount,
|
getParticipantCount,
|
||||||
isEveryoneModerator,
|
|
||||||
isLocalParticipantModerator
|
isLocalParticipantModerator
|
||||||
} from '../../../base/participants';
|
} from '../../../base/participants';
|
||||||
import MuteEveryoneDialog
|
import MuteEveryoneDialog
|
||||||
|
@ -34,8 +33,7 @@ const ParticipantsPane = () => {
|
||||||
const closePane = useCallback(() => dispatch(close()), [ dispatch ]);
|
const closePane = useCallback(() => dispatch(close()), [ dispatch ]);
|
||||||
const isLocalModerator = useSelector(isLocalParticipantModerator);
|
const isLocalModerator = useSelector(isLocalParticipantModerator);
|
||||||
const participantsCount = useSelector(getParticipantCount);
|
const participantsCount = useSelector(getParticipantCount);
|
||||||
const everyoneModerator = useSelector(isEveryoneModerator);
|
const showContextMenu = participantsCount > 2;
|
||||||
const showContextMenu = !everyoneModerator && participantsCount > 2;
|
|
||||||
const muteAll = useCallback(() => dispatch(openDialog(MuteEveryoneDialog)),
|
const muteAll = useCallback(() => dispatch(openDialog(MuteEveryoneDialog)),
|
||||||
[ dispatch ]);
|
[ dispatch ]);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
Loading…
Reference in New Issue