Show raise hand status in call participant list

This commit is contained in:
ayumi-signal 2024-01-17 09:47:45 -08:00 committed by GitHub
parent 23e3883ce0
commit 52d267f7b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 76 additions and 51 deletions

View file

@ -324,6 +324,14 @@ function ActiveCallManager({
);
}
let isHandRaised = false;
if (activeCall.callMode === CallMode.Group) {
const { raisedHands, localDemuxId } = activeCall;
if (localDemuxId) {
isHandRaised = raisedHands.has(localDemuxId);
}
}
const groupCallParticipantsForParticipantsList =
activeCall.callMode === CallMode.Group
? [
@ -337,6 +345,7 @@ function ActiveCallManager({
...me,
hasRemoteAudio: hasLocalAudio,
hasRemoteVideo: hasLocalVideo,
isHandRaised,
presenting: Boolean(activeCall.presentingSource),
},
]