Failing test for unmuting microphone

This commit is contained in:
Conrad Irwin 2024-01-08 22:23:34 -07:00
parent 844d161c40
commit 8669b08161
3 changed files with 45 additions and 13 deletions

View file

@ -173,7 +173,11 @@ impl Room {
cx.spawn(|this, mut cx| async move {
connect.await?;
if !cx.update(|cx| Self::mute_on_join(cx))? {
let is_read_only = this
.update(&mut cx, |room, _| room.read_only())
.unwrap_or(true);
if !cx.update(|cx| Self::mute_on_join(cx))? && !is_read_only {
this.update(&mut cx, |this, cx| this.share_microphone(cx))?
.await?;
}