diff options
author | trilene <trilene@runbox.com> | 2020-07-13 20:15:09 -0400 |
---|---|---|
committer | trilene <trilene@runbox.com> | 2020-07-13 20:15:09 -0400 |
commit | 9d6cce9fe3c5ff579e8d7aa065e8f7672184325f (patch) | |
tree | a4d64b957739bbdff7b555bf9db233fc99819825 /src | |
parent | Hide CallCandidates events from the timeline (diff) | |
download | nheko-9d6cce9fe3c5ff579e8d7aa065e8f7672184325f.tar.xz |
Handle preemptive CallHangUp
Diffstat (limited to 'src')
-rw-r--r-- | src/CallManager.cpp | 4 |
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 |