Await toggle of mute
This commit is contained in:
parent
52119ca203
commit
b0d9e3c8fa
2 changed files with 5 additions and 3 deletions
|
@ -660,9 +660,12 @@ impl CallHandler for Call {
|
||||||
self.active_call.as_ref().map(|call| {
|
self.active_call.as_ref().map(|call| {
|
||||||
call.0.update(cx, |this, cx| {
|
call.0.update(cx, |this, cx| {
|
||||||
this.room().map(|room| {
|
this.room().map(|room| {
|
||||||
room.update(cx, |this, cx| {
|
let room = room.clone();
|
||||||
this.toggle_mute(cx).log_err();
|
cx.spawn(|_, mut cx| async move {
|
||||||
|
room.update(&mut cx, |this, cx| this.toggle_mute(cx))??
|
||||||
|
.await
|
||||||
})
|
})
|
||||||
|
.detach_and_log_err(cx);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
@ -1268,7 +1268,6 @@ impl Room {
|
||||||
.ok_or_else(|| anyhow!("live-kit was not initialized"))?
|
.ok_or_else(|| anyhow!("live-kit was not initialized"))?
|
||||||
.await
|
.await
|
||||||
};
|
};
|
||||||
|
|
||||||
let publication = publish_track.await;
|
let publication = publish_track.await;
|
||||||
this.upgrade()
|
this.upgrade()
|
||||||
.ok_or_else(|| anyhow!("room was dropped"))?
|
.ok_or_else(|| anyhow!("room was dropped"))?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue