Skip to content
Snippets Groups Projects
Commit 1c7ef626 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

calladapter: fix setCurrentCall usage

Change-Id: I062d679ecb0fa45755abda8c902a00a2042d2729
GitLab: #431
parent 8f197190
No related branches found
No related tags found
No related merge requests found
......@@ -308,13 +308,15 @@ CallAdapter::updateCall(const QString& convUid, const QString& accountId, bool f
return;
}
updateCallOverlay(convInfo);
Q_EMIT previewVisibilityNeedToChange(shouldShowPreview(forceCallOnly));
if (call->status == lrc::api::call::Status::IN_PROGRESS) {
if (convInfo.uid == lrcInstance_->get_selectedConvUid()) {
auto& accInfo = lrcInstance_->accountModel().getAccountInfo(accountId_);
if (accInfo.profileInfo.type != lrc::api::profile::Type::SIP)
accInfo.callModel->setCurrentCall(call->id);
lrcInstance_->renderer()->addDistantRenderer(call->id);
lrcInstance_->getAccountInfo(accountId_).callModel->setCurrentCall(call->id);
}
updateCallOverlay(convInfo);
Q_EMIT previewVisibilityNeedToChange(shouldShowPreview(forceCallOnly));
}
bool
......
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