mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 02:19:23 +00:00
call http digest callback if account not connected
This commit is contained in:
parent
44a3a90517
commit
c0c369e93e
1 changed files with 0 additions and 4 deletions
|
|
@ -1256,16 +1256,12 @@ void App::onExitOnCloseChanged() {
|
|||
void App::onAuthenticationRequested(const std::shared_ptr<linphone::Core> &core,
|
||||
const std::shared_ptr<linphone::AuthInfo> &authInfo,
|
||||
linphone::AuthMethod method) {
|
||||
bool authInfoIsInAccounts = false;
|
||||
for (auto &account : core->getAccountList()) {
|
||||
auto accountAuthInfo = account->findAuthInfo();
|
||||
if (authInfo && accountAuthInfo && authInfo->isEqualButAlgorithms(accountAuthInfo)) {
|
||||
authInfoIsInAccounts = true;
|
||||
if (account->getState() == linphone::RegistrationState::Ok) return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!authInfoIsInAccounts) return;
|
||||
mCoreModelConnection->invokeToCore([this, core, authInfo, method]() {
|
||||
auto window = App::getInstance()->getMainWindow();
|
||||
if (!window) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue