Add deafen toggle to mute all incoming audio#3763
Draft
alisonjenkins wants to merge 6 commits intoelement-hq:livekitfrom
Draft
Add deafen toggle to mute all incoming audio#3763alisonjenkins wants to merge 6 commits intoelement-hq:livekitfrom
alisonjenkins wants to merge 6 commits intoelement-hq:livekitfrom
Conversation
Define ElementCallDeafenedKey ("io.element.call.deafened") and
DeafenedInfo type. Add DeafenReader class that listens for m.reaction
events with the deafen key on membership events, following the same
pattern as ReactionsReader for hand raises.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
DeafenModel provides a simple BehaviorSubject toggle for local deafen state. MuteAllAudioModel now includes deafened$ as a third input to muteAllAudio$, so deafening automatically mutes all incoming audio renderers (LiveKit, call events, reactions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add deafenedSubject$ parameter to createCallViewModel$ and expose deafened$ on the CallViewModel interface. Map per-member deafen state into BaseUserMediaViewModel so tiles can read it. Update test utilities and SDK to pass the new parameter. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
New DeafenButton in Button.tsx using HeadphonesSolidIcon / HeadphonesOffSolidIcon from Compound. GridTile now subscribes to vm.deafened$ and shows a HeadphonesOffSolidIcon in the name tag when the participant is deafened. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Follow the toggleRaisedHand pattern: send an m.reaction event with key io.element.call.deafened to announce deafen state, and redact it to un-deafen. Expose toggleDeafened in the context so InCallView can broadcast state changes to other participants. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
InCallView: instantiate DeafenReader, add DeafenButton to toolbar, auto-mute mic on deafen (restore previous state on un-deafen), and disable mic toggle while deafened. Add 'd' keyboard shortcut for toggling deafen. Add translation keys for deafen/undeafen labels and the deafened tile indicator. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code