Receive side of remote mute

This commit is contained in:
Miriam Zimmerman 2025-05-01 14:26:35 -04:00 committed by GitHub
commit a444790bf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 540 additions and 16 deletions

View file

@ -15,6 +15,7 @@ import type {
SetLocalAudioType,
SetLocalVideoType,
SetRendererCanvasType,
SetMutedByType,
} from '../state/ducks/calling';
import { Avatar, AvatarSize } from './Avatar';
import { CallingHeader, getCallViewIconClassname } from './CallingHeader';
@ -135,6 +136,7 @@ export type PropsType = {
toggleSelfViewExpanded: () => void;
toggleSettings: () => void;
changeCallView: (mode: CallViewMode) => void;
setLocalAudioRemoteMuted: SetMutedByType;
} & Pick<ReactionPickerProps, 'renderEmojiPicker'>;
export const isInSpeakerView = (
@ -224,6 +226,7 @@ export function CallScreen({
toggleScreenRecordingPermissionsDialog,
toggleSelfViewExpanded,
toggleSettings,
setLocalAudioRemoteMuted,
}: PropsType): JSX.Element {
const {
conversation,
@ -980,7 +983,17 @@ export function CallScreen({
: false
}
isHandRaised={localHandRaised}
mutedBy={
isGroupOrAdhocActiveCall(activeCall) ? activeCall.mutedBy : undefined
}
observedRemoteMute={
isGroupOrAdhocActiveCall(activeCall)
? activeCall.observedRemoteMute
: undefined
}
conversationsByDemuxId={conversationsByDemuxId}
i18n={i18n}
setLocalAudioRemoteMuted={setLocalAudioRemoteMuted}
/>
{isCallLinkAdmin ? (
<CallingPendingParticipants