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,
|
void App::onAuthenticationRequested(const std::shared_ptr<linphone::Core> &core,
|
||||||
const std::shared_ptr<linphone::AuthInfo> &authInfo,
|
const std::shared_ptr<linphone::AuthInfo> &authInfo,
|
||||||
linphone::AuthMethod method) {
|
linphone::AuthMethod method) {
|
||||||
bool authInfoIsInAccounts = false;
|
|
||||||
for (auto &account : core->getAccountList()) {
|
for (auto &account : core->getAccountList()) {
|
||||||
auto accountAuthInfo = account->findAuthInfo();
|
auto accountAuthInfo = account->findAuthInfo();
|
||||||
if (authInfo && accountAuthInfo && authInfo->isEqualButAlgorithms(accountAuthInfo)) {
|
if (authInfo && accountAuthInfo && authInfo->isEqualButAlgorithms(accountAuthInfo)) {
|
||||||
authInfoIsInAccounts = true;
|
|
||||||
if (account->getState() == linphone::RegistrationState::Ok) return;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!authInfoIsInAccounts) return;
|
|
||||||
mCoreModelConnection->invokeToCore([this, core, authInfo, method]() {
|
mCoreModelConnection->invokeToCore([this, core, authInfo, method]() {
|
||||||
auto window = App::getInstance()->getMainWindow();
|
auto window = App::getInstance()->getMainWindow();
|
||||||
if (!window) {
|
if (!window) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue