mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Handle preemptive CallHangUp
This commit is contained in:
parent
774d864096
commit
9d6cce9fe3
1 changed files with 3 additions and 1 deletions
|
@ -236,8 +236,10 @@ void
|
||||||
CallManager::handleEvent(const RoomEvent<CallHangUp> &callHangUpEvent)
|
CallManager::handleEvent(const RoomEvent<CallHangUp> &callHangUpEvent)
|
||||||
{
|
{
|
||||||
nhlog::ui()->debug("CallManager::incoming CallHangUp from {} with id {}", callHangUpEvent.sender, callHangUpEvent.content.call_id);
|
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();
|
endCall();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue