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
|
@ -255,23 +255,6 @@ impl RemoteTrackPublication {
|
|||
}
|
||||
}
|
||||
|
||||
impl RemoteTrack {
|
||||
pub fn set_enabled(&self, enabled: bool, cx: &App) {
|
||||
let this = self.clone();
|
||||
Tokio::spawn(cx, async move {
|
||||
match this {
|
||||
RemoteTrack::Audio(remote_audio_track) => {
|
||||
remote_audio_track.0.rtc_track().set_enabled(enabled)
|
||||
}
|
||||
RemoteTrack::Video(remote_video_track) => {
|
||||
remote_video_track.0.rtc_track().set_enabled(enabled)
|
||||
}
|
||||
}
|
||||
})
|
||||
.detach();
|
||||
}
|
||||
}
|
||||
|
||||
impl Participant {
|
||||
pub fn identity(&self) -> ParticipantIdentity {
|
||||
match self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue