mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 11:58:27 +00:00
Check authInfo before doing getDeviceList request
This commit is contained in:
parent
e077320c97
commit
04e79a63ea
1 changed files with 8 additions and 2 deletions
|
|
@ -81,8 +81,14 @@ void AccountDeviceList::refreshDevices() {
|
|||
auto requestDeviceList = [this] {
|
||||
if (!mAccountManagerServicesModelConnection) return;
|
||||
mAccountManagerServicesModelConnection->invokeToModel([this]() {
|
||||
auto identityAddress = mAccountCore->getModel()->getMonitor()->getParams()->getIdentityAddress();
|
||||
auto authinfo = mAccountCore->getModel()->getMonitor()->findAuthInfo();
|
||||
auto account = mAccountCore->getModel()->getMonitor();
|
||||
auto identityAddress = account->getParams()->getIdentityAddress();
|
||||
auto authinfo = account->findAuthInfo();
|
||||
if (!authinfo) {
|
||||
lWarning() << "[AccountDeviceList] No auth info found for address"
|
||||
<< identityAddress->asStringUriOnly() << ", skipping device list request";
|
||||
return;
|
||||
}
|
||||
qDebug() << "[AccountDeviceList] request devices for address" << identityAddress->asStringUriOnly();
|
||||
mAccountManagerServicesModel->getDeviceList(identityAddress);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue