1
0
Fork 0
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:
Sébastien Blin 2023-02-28 15:43:25 -05:00
parent 1205231707
commit 6af096c9b4

View file

@ -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()));
}