From e0304abf25db542bfddc28f9ee646265985f2b5a Mon Sep 17 00:00:00 2001 From: Gabriel Borlea Date: Mon, 6 Mar 2023 12:29:35 +0200 Subject: [PATCH] rename cliked from participant pane --- .../components/web/ParticipantContextMenu.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/react/features/video-menu/components/web/ParticipantContextMenu.tsx b/react/features/video-menu/components/web/ParticipantContextMenu.tsx index 650433e61..3c9d2aa39 100644 --- a/react/features/video-menu/components/web/ParticipantContextMenu.tsx +++ b/react/features/video-menu/components/web/ParticipantContextMenu.tsx @@ -172,7 +172,9 @@ const ParticipantContextMenu = ({ } , [ thumbnailMenu, _overflowDrawer, drawerParticipant, participant ]); - const isParticipantPane = useMemo(() => !_overflowDrawer && !thumbnailMenu, [ _overflowDrawer, thumbnailMenu ]); + const isClickedFromParticipantPane = useMemo( + () => !_overflowDrawer && !thumbnailMenu, + [ _overflowDrawer, thumbnailMenu ]); const quickActionButtonType = useSelector((state: IReduxState) => getQuickActionButtonType(participant, _isAudioMuted, _isVideoMuted, state)); @@ -188,7 +190,7 @@ const ParticipantContextMenu = ({ if (_isModerator) { if (isModerationSupported) { if (_isAudioMuted - && !(isParticipantPane && quickActionButtonType === QUICK_ACTION_BUTTON.ASK_TO_UNMUTE)) { + && !(isClickedFromParticipantPane && quickActionButtonType === QUICK_ACTION_BUTTON.ASK_TO_UNMUTE)) { buttons.push( ); - if (!(isParticipantPane && quickActionButtonType === QUICK_ACTION_BUTTON.STOP_VIDEO)) { + if (!(isClickedFromParticipantPane && quickActionButtonType === QUICK_ACTION_BUTTON.STOP_VIDEO)) { buttons.push(