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

calladapter: avoid the crash when receiving a call for rendezvous account

Gitlab: #189
Gitlab: #190
Change-Id: I7a5358c545b2362677091e167810d80553c60c27
parent 740cb407
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,8 @@ CallAdapter::CallAdapter(QObject* parent)
: QmlAdapterBase(parent)
, oneSecondTimer_(new QTimer(this))
{
connectCallModel(LRCInstance::getCurrAccId());
accountId_ = LRCInstance::getCurrAccId();
connectCallModel(accountId_);
connect(&LRCInstance::behaviorController(),
&BehaviorController::showIncomingCallView,
......@@ -50,7 +51,8 @@ CallAdapter::CallAdapter(QObject* parent)
void
CallAdapter::slotAccountChanged()
{
connectCallModel(LRCInstance::getCurrAccId());
accountId_ = LRCInstance::getCurrAccId();
connectCallModel(accountId_);
}
void
......@@ -431,7 +433,7 @@ CallAdapter::connectCallModel(const QString& accountId)
accInfo.conversationModel->selectConversation(convInfo.uid);
}
LRCInstance::renderer()->addDistantRenderer(callId);
updateCall();
updateCall(convInfo.uid, accountId);
LRCInstance::getAccountInfo(accountId).callModel->setCurrentCall(callId);
break;
}
......
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