Click grid raised hand participant to open queue

This commit is contained in:
ayumi-signal 2023-12-11 07:10:31 -08:00 committed by GitHub
parent 9a08070262
commit 96d5e97318
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 82 additions and 33 deletions

View file

@ -335,7 +335,6 @@ export function CallScreen({
let hasCallStarted: boolean;
let isConnected: boolean;
let participantCount: number;
let remoteParticipantsElement: ReactNode;
let conversationsByDemuxId: ConversationsByDemuxIdType;
let localDemuxId: number | undefined;
@ -348,17 +347,6 @@ export function CallScreen({
isConnected = activeCall.callState === CallState.Accepted;
participantCount = isConnected ? 2 : 0;
conversationsByDemuxId = new Map();
remoteParticipantsElement = hasCallStarted ? (
<DirectCallRemoteParticipant
conversation={conversation}
hasRemoteVideo={hasRemoteVideo}
i18n={i18n}
isReconnecting={isReconnecting}
setRendererCanvas={setRendererCanvas}
/>
) : (
<div className="module-ongoing-call__direct-call-ringing-spacer" />
);
break;
}
case CallMode.Group:
@ -373,17 +361,6 @@ export function CallScreen({
isConnected =
activeCall.connectionState === GroupCallConnectionState.Connected;
remoteParticipantsElement = (
<GroupCallRemoteParticipants
callViewMode={activeCall.viewMode}
getGroupCallVideoFrameSource={getGroupCallVideoFrameSource}
i18n={i18n}
remoteParticipants={activeCall.remoteParticipants}
setGroupCallVideoRequest={setGroupCallVideoRequest}
remoteAudioLevels={activeCall.remoteAudioLevels}
isCallReconnecting={isReconnecting}
/>
);
break;
default:
throw missingCaseError(activeCall);
@ -627,6 +604,44 @@ export function CallScreen({
toggleParticipants,
]);
let remoteParticipantsElement: ReactNode;
switch (activeCall.callMode) {
case CallMode.Direct: {
remoteParticipantsElement = hasCallStarted ? (
<DirectCallRemoteParticipant
conversation={conversation}
hasRemoteVideo={hasRemoteVideo}
i18n={i18n}
isReconnecting={isReconnecting}
setRendererCanvas={setRendererCanvas}
/>
) : (
<div className="module-ongoing-call__direct-call-ringing-spacer" />
);
break;
}
case CallMode.Group:
remoteParticipantsElement = (
<GroupCallRemoteParticipants
callViewMode={activeCall.viewMode}
getGroupCallVideoFrameSource={getGroupCallVideoFrameSource}
i18n={i18n}
remoteParticipants={activeCall.remoteParticipants}
setGroupCallVideoRequest={setGroupCallVideoRequest}
remoteAudioLevels={activeCall.remoteAudioLevels}
isCallReconnecting={isReconnecting}
onClickRaisedHand={
raisedHandsCount > 0
? () => setShowRaisedHandsList(true)
: undefined
}
/>
);
break;
default:
throw missingCaseError(activeCall);
}
return (
<div
className={classNames(