Fix panic by disallowing multiple room joins (#3149)
Release Notes: - Fixed panic that could occur when switching channels quickly
This commit is contained in:
commit
b8bd070a83
5 changed files with 240 additions and 34 deletions
|
@ -40,3 +40,7 @@ fn room_participants(room: &ModelHandle<Room>, cx: &mut TestAppContext) -> RoomP
|
|||
RoomParticipants { remote, pending }
|
||||
})
|
||||
}
|
||||
|
||||
fn channel_id(room: &ModelHandle<Room>, cx: &mut TestAppContext) -> Option<u64> {
|
||||
cx.read(|cx| room.read(cx).channel_id())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue