Update chat panel with current channel
This commit is contained in:
parent
bc09ce6ffc
commit
dc158f708f
3 changed files with 18 additions and 1 deletions
|
@ -442,6 +442,8 @@ impl ActiveCall {
|
|||
.location
|
||||
.as_ref()
|
||||
.and_then(|location| location.upgrade());
|
||||
let channel_id = room.update(cx, |room, cx| room.channel_id());
|
||||
cx.emit(Event::RoomJoined { channel_id });
|
||||
room.update(cx, |room, cx| room.set_location(location.as_ref(), cx))
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -26,6 +26,9 @@ pub const RECONNECT_TIMEOUT: Duration = Duration::from_secs(30);
|
|||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub enum Event {
|
||||
RoomJoined {
|
||||
channel_id: Option<u64>,
|
||||
},
|
||||
ParticipantLocationChanged {
|
||||
participant_id: proto::PeerId,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue