Revert "Check authInfo before doing getDeviceList request"

This reverts commit 1eb57b24b5.
This commit is contained in:
Christophe Deschamps 2026-03-24 16:33:18 +01:00 committed by Gaelle Braud
parent 60c5740c08
commit 745419014a

View file

@ -81,14 +81,8 @@ void AccountDeviceList::refreshDevices() {
auto requestDeviceList = [this] {
if (!mAccountManagerServicesModelConnection) return;
mAccountManagerServicesModelConnection->invokeToModel([this]() {
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;
}
auto identityAddress = mAccountCore->getModel()->getMonitor()->getParams()->getIdentityAddress();
auto authinfo = mAccountCore->getModel()->getMonitor()->findAuthInfo();
qDebug() << "[AccountDeviceList] request devices for address" << identityAddress->asStringUriOnly();
mAccountManagerServicesModel->getDeviceList(identityAddress);
});