From d34c8d08a4e2d0497439fb6c47b6849e437bfe37 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 13 May 2022 18:09:45 +0100 Subject: [PATCH] Add comment --- src/room/usePTT.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/room/usePTT.ts b/src/room/usePTT.ts index 9c4bac31..5d4682e0 100644 --- a/src/room/usePTT.ts +++ b/src/room/usePTT.ts @@ -119,7 +119,11 @@ export const usePTT = ( activeSpeakerUserId === client.getUserId() && activeSpeakerFeed?.userId !== client.getUserId() ) { - // We were talking but we've been cut off + // We were talking but we've been cut off: mute our own mic + // (this is the easier way of cutting other speakers off if an + // admin barges in: we could also mute the non-admin speaker + // on all receivers, but we'd have to make sure we unmuted them + // correctly.) setMicMuteWrapper(true); blocked = true; playClip(PTTClipID.BLOCKED);