Add leave button on active call header
This commit is contained in:
parent
6f4edf6df5
commit
79748803a9
5 changed files with 1166 additions and 0 deletions
|
@ -201,6 +201,7 @@ impl ActiveCall {
|
|||
pub fn hang_up(&mut self, cx: &mut ModelContext<Self>) -> Result<()> {
|
||||
if let Some((room, _)) = self.room.take() {
|
||||
room.update(cx, |room, cx| room.leave(cx))?;
|
||||
cx.notify();
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue