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