Add leave button on active call header

This commit is contained in:
Antonio Scandurra 2022-10-10 10:30:51 +02:00
parent 6f4edf6df5
commit 79748803a9
5 changed files with 1166 additions and 0 deletions

View file

@ -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(())
}