Skip to content
Snippets Groups Projects
Commit e66ece69 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

fix: call refuse if incoming_ringing instead of hangup

Change-Id: I017fba2afcf66286c4d0e3ec56b91074228ccb87
GitLab: #469
parent 7d8f2ce9
No related branches found
No related tags found
No related merge requests found
......@@ -308,6 +308,12 @@ NewCallModel::hangUp(const QString& callId) const
if (!hasCall(callId))
return;
auto& call = pimpl_->calls[callId];
if (call->status == call::Status::INCOMING_RINGING) {
CallManager::instance().refuse(callId);
return;
}
switch (call->type) {
case call::Type::DIALOG:
CallManager::instance().hangUp(callId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment