Fix panic by disallowing multiple room joins

This commit is contained in:
Conrad Irwin 2023-10-20 14:31:10 -06:00
parent cc7df91cc6
commit fd8e6110b1
3 changed files with 104 additions and 33 deletions

View file

@ -4238,6 +4238,10 @@ async fn join_channel_internal(
})
.await?;
let Some(room) = room else {
return anyhow::Ok(true);
};
room.update(cx, |room, _| room.room_update_completed())
.await;