Open chat when joining a channel with guests

(and close it when leaving a channel again)
This commit is contained in:
Conrad Irwin 2024-01-12 15:08:14 -07:00
parent f0d490c671
commit 50f3bbbc8b
4 changed files with 35 additions and 11 deletions

View file

@ -442,10 +442,8 @@ impl ActiveCall {
.location
.as_ref()
.and_then(|location| location.upgrade());
let (channel_id, role) = room.update(cx, |room, _| {
(room.channel_id(), room.local_participant().role)
});
cx.emit(Event::RoomJoined { channel_id, role });
let channel_id = room.read(cx).channel_id();
cx.emit(Event::RoomJoined { channel_id });
room.update(cx, |room, cx| room.set_location(location.as_ref(), cx))
}
} else {