Fix deafening new participants (#28330)
Release Notes: - Fixed an issue where new participants were not muted when the room was deafened
This commit is contained in:
parent
14b43d573c
commit
ee7b1ec7f2
4 changed files with 2 additions and 47 deletions
|
@ -944,8 +944,8 @@ impl Room {
|
|||
)
|
||||
})?;
|
||||
if self.live_kit.as_ref().map_or(true, |kit| kit.deafened) {
|
||||
if matches!(track, livekit_client::RemoteTrack::Audio(_)) {
|
||||
track.set_enabled(false, cx);
|
||||
if publication.is_audio() {
|
||||
publication.set_enabled(false, cx);
|
||||
}
|
||||
}
|
||||
match track {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue