summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-07-13 20:15:09 -0400
committertrilene <trilene@runbox.com>2020-07-13 20:15:09 -0400
commit9d6cce9fe3c5ff579e8d7aa065e8f7672184325f (patch)
treea4d64b957739bbdff7b555bf9db233fc99819825 /src
parentHide CallCandidates events from the timeline (diff)
downloadnheko-9d6cce9fe3c5ff579e8d7aa065e8f7672184325f.tar.xz
Handle preemptive CallHangUp
Diffstat (limited to 'src')
-rw-r--r--src/CallManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CallManager.cpp b/src/CallManager.cpp
index b2236290..05e8afc3 100644
--- a/src/CallManager.cpp
+++ b/src/CallManager.cpp
@@ -236,8 +236,10 @@ void
 CallManager::handleEvent(const RoomEvent<CallHangUp> &callHangUpEvent)
 {
   nhlog::ui()->debug("CallManager::incoming CallHangUp from {} with id {}", callHangUpEvent.sender, callHangUpEvent.content.call_id);
-  if (onActiveCall() && callid_ == callHangUpEvent.content.call_id)
+  if (callid_ == callHangUpEvent.content.call_id) {
+    MainWindow::instance()->hideOverlay();
     endCall();
+  }
 }
 
 void