mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Remove unnecessary call to context.notify
This commit is contained in:
parent
4b52ff65c1
commit
a9b5c1d867
@ -1210,8 +1210,9 @@ impl Room {
|
||||
pub fn toggle_deafen(&mut self, cx: &mut ModelContext<Self>) -> Result<Task<Result<()>>> {
|
||||
if let Some(live_kit) = self.live_kit.as_mut() {
|
||||
(*live_kit).deafened = !live_kit.deafened;
|
||||
cx.notify();
|
||||
|
||||
let mut tasks = Vec::with_capacity(self.remote_participants.len());
|
||||
// Context notification is sent within set_mute itself.
|
||||
let _ = Self::set_mute(live_kit, live_kit.deafened, cx)?; // todo (osiewicz): we probably want to schedule it on fg/bg?
|
||||
for participant in self.remote_participants.values() {
|
||||
for track in live_kit
|
||||
|
Loading…
Reference in New Issue
Block a user