mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 06:45:45 +02:00
calladapter: avoid the crash when receiving a call for rendezvous account
Gitlab: #189 Gitlab: #190 Change-Id: I7a5358c545b2362677091e167810d80553c60c27
This commit is contained in:
parent
740cb407f8
commit
087d234836
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue