mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
misc: fix setCurrentCall when switching between two different calls
Change-Id: Ia84b8580e02eeba946209e472caafcea03b85444
This commit is contained in:
parent
1205231707
commit
6af096c9b4
1 changed files with 3 additions and 1 deletions
|
@ -60,8 +60,10 @@ CurrentCall::updateId(QString callId)
|
|||
return;
|
||||
}
|
||||
|
||||
// Set the current id_ if there is a call.
|
||||
auto& accInfo = lrcInstance_->getCurrentAccountInfo();
|
||||
if (accInfo.profileInfo.type != lrc::api::profile::Type::SIP)
|
||||
accInfo.callModel->setCurrentCall(callId);
|
||||
// Set the current id_ if there is a call.
|
||||
set_id((accInfo.callModel->hasCall(callId) ? callId : QString()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue