Skip to content
Snippets Groups Projects
Commit 83bbd636 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

newcallmodel: remove setCurrentCall to avoid unholding calls multiple times

togglePause function should now only serves for SIP account

Gitlab: #464

Change-Id: If36dfbedc7bab1e60d53324440eca97f9ab23d94
parent 782e2e26
No related branches found
No related tags found
No related merge requests found
...@@ -348,6 +348,7 @@ NewCallModel::playDTMF(const QString& callId, const QString& value) const ...@@ -348,6 +348,7 @@ NewCallModel::playDTMF(const QString& callId, const QString& value) const
void void
NewCallModel::togglePause(const QString& callId) const NewCallModel::togglePause(const QString& callId) const
{ {
// function should now only serves for SIP accounts
if (!hasCall(callId)) if (!hasCall(callId))
return; return;
auto& call = pimpl_->calls[callId]; auto& call = pimpl_->calls[callId];
...@@ -355,7 +356,6 @@ NewCallModel::togglePause(const QString& callId) const ...@@ -355,7 +356,6 @@ NewCallModel::togglePause(const QString& callId) const
if (call->status == call::Status::PAUSED) { if (call->status == call::Status::PAUSED) {
if (call->type == call::Type::DIALOG) { if (call->type == call::Type::DIALOG) {
CallManager::instance().unhold(callId); CallManager::instance().unhold(callId);
setCurrentCall(callId);
} else { } else {
CallManager::instance().unholdConference(callId); CallManager::instance().unholdConference(callId);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment