From 0098091a37ec4715d39c41efaf394571a5210ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 19 May 2022 10:43:36 +0200 Subject: [PATCH] fix(participants-pane,video-menu) fix incorrect selector usage --- .../participants-pane/components/native/ContextMenuMore.js | 2 +- .../participants-pane/components/web/FooterContextMenu.js | 2 +- .../video-menu/components/web/ParticipantContextMenu.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/react/features/participants-pane/components/native/ContextMenuMore.js b/react/features/participants-pane/components/native/ContextMenuMore.js index 2200370aa..7e3b76036 100644 --- a/react/features/participants-pane/components/native/ContextMenuMore.js +++ b/react/features/participants-pane/components/native/ContextMenuMore.js @@ -38,7 +38,7 @@ export const ContextMenuMore = () => { [ dispatch ]); const { t } = useTranslation(); - const isModerationSupported = useSelector(isAvModerationSupported()); + const isModerationSupported = useSelector(isAvModerationSupported); const allModerators = useSelector(isEveryoneModerator); const participantCount = useSelector(getParticipantCount); diff --git a/react/features/participants-pane/components/web/FooterContextMenu.js b/react/features/participants-pane/components/web/FooterContextMenu.js index b35e882c7..c1770e9b1 100644 --- a/react/features/participants-pane/components/web/FooterContextMenu.js +++ b/react/features/participants-pane/components/web/FooterContextMenu.js @@ -84,7 +84,7 @@ type Props = { export const FooterContextMenu = ({ isOpen, onDrawerClose, onMouseLeave }: Props) => { const dispatch = useDispatch(); - const isModerationSupported = useSelector(isAvModerationSupported()); + const isModerationSupported = useSelector(isAvModerationSupported); const allModerators = useSelector(isEveryoneModerator); const isModeratorSettingsTabEnabled = useSelector(shouldShowModeratorSettings); const participantCount = useSelector(getParticipantCount); diff --git a/react/features/video-menu/components/web/ParticipantContextMenu.js b/react/features/video-menu/components/web/ParticipantContextMenu.js index dcfd7e239..f8dc6856a 100644 --- a/react/features/video-menu/components/web/ParticipantContextMenu.js +++ b/react/features/video-menu/components/web/ParticipantContextMenu.js @@ -145,7 +145,7 @@ const ParticipantContextMenu = ({ const _volume = (participant?.local ?? true ? undefined : participant?.id ? participantsVolume[participant?.id] : undefined) ?? 1; const isBreakoutRoom = useSelector(isInBreakoutRoom); - const isModerationSupported = useSelector(isAvModerationSupported()); + const isModerationSupported = useSelector(isAvModerationSupported); const stageFilmstrip = useSelector(isStageFilmstripEnabled); const _currentRoomId = useSelector(getCurrentRoomId);