From d0146a161313819fc2e3e4610b8b67f3b3c5d5d5 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Wed, 6 Jan 2021 11:22:48 -0600 Subject: [PATCH] Continue to show participants even when the blocked dialog is up --- ts/components/GroupCallRemoteParticipant.tsx | 208 +++++++++---------- 1 file changed, 104 insertions(+), 104 deletions(-) diff --git a/ts/components/GroupCallRemoteParticipant.tsx b/ts/components/GroupCallRemoteParticipant.tsx index 5da870595c..5040b1048c 100644 --- a/ts/components/GroupCallRemoteParticipant.tsx +++ b/ts/components/GroupCallRemoteParticipant.tsx @@ -179,115 +179,115 @@ export const GroupCallRemoteParticipant: React.FC = React.memo( const showHover = hasHover && !props.isInPip; const canShowVideo = hasRemoteVideo && !isBlocked; - if (showBlockInfo) { - return ( - { - setShowBlockInfo(false); - }} - title={ -
- , - ]} - /> -
- } - actions={[ - { - text: i18n('ok'), - action: () => { - setShowBlockInfo(false); - }, - style: 'affirmative', - }, - ]} - > - {i18n('calling__block-info')} -
- ); - } - return ( -
setHover(true)} - onMouseLeave={() => setHover(false)} - style={containerStyles} - > - {showHover && ( -
- -
- )} - {canShowVideo ? ( - { - remoteVideoRef.current = canvasEl; - if (canvasEl) { - canvasContextRef.current = canvasEl.getContext('2d', { - alpha: false, - desynchronized: true, - storage: 'discardable', - } as CanvasRenderingContext2DSettings); - } else { - canvasContextRef.current = null; - } + <> + {showBlockInfo && ( + { + setShowBlockInfo(false); }} - /> - ) : ( - - {isBlocked ? ( - <> - - - - ) : ( - + , + ]} + /> +
+ } + actions={[ + { + text: i18n('ok'), + action: () => { + setShowBlockInfo(false); + }, + style: 'affirmative', + }, + ]} + > + {i18n('calling__block-info')} + + )} + +
setHover(true)} + onMouseLeave={() => setHover(false)} + style={containerStyles} + > + {showHover && ( +
+ - )} - - )} -
+
+ )} + {canShowVideo ? ( + { + remoteVideoRef.current = canvasEl; + if (canvasEl) { + canvasContextRef.current = canvasEl.getContext('2d', { + alpha: false, + desynchronized: true, + storage: 'discardable', + } as CanvasRenderingContext2DSettings); + } else { + canvasContextRef.current = null; + } + }} + /> + ) : ( + + {isBlocked ? ( + <> + + + + ) : ( + + )} + + )} + + ); } );