calls: fix the client crash when having multiple calls

Gitlab: #236
Change-Id: I9f9af107db27cfe8ab09911b2f2b0516f56d2578
This commit is contained in:
Ming Rui Zhang
2020-12-31 10:55:50 -05:00
committed by Sébastien Blin
parent 1c8ca29518
commit 3c15299fd2

View File

@@ -230,7 +230,7 @@ CallAdapter::updateCall(const QString& convUid, const QString& accountId, bool f
if (call->status == lrc::api::call::Status::IN_PROGRESS) {
LRCInstance::renderer()->addDistantRenderer(call->id);
LRCInstance::getAccountInfo(accountId).callModel->setCurrentCall(call->id);
LRCInstance::getAccountInfo(accountId_).callModel->setCurrentCall(call->id);
}
}