Handle preemptive CallHangUp

This commit is contained in:
trilene 2020-07-13 20:15:09 -04:00
parent 774d864096
commit 9d6cce9fe3

View file

@ -236,9 +236,11 @@ 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
CallManager::generateCallID() CallManager::generateCallID()