From f530fb84cf106a459f3b5f8d8ff65f1dfa7e6e50 Mon Sep 17 00:00:00 2001 From: QuentinA <quentin.arguillere@belledone-communications.com> Date: Fri, 7 Mar 2025 12:02:45 +0100 Subject: [PATCH] account push param generation: accounts push config now always have a default provider, therefore removed a check that cause push parameters to never go in tester_env mode even when required --- src/account/account.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/account/account.cpp b/src/account/account.cpp index 28afcef7f9..e2bd7a8b8e 100644 --- a/src/account/account.cpp +++ b/src/account/account.cpp @@ -633,13 +633,11 @@ std::shared_ptr<Address> Account::guessContactForRegister() { lError() << "Couldn't compute automatic push notifications parameters on " << *this << " because account params do not have available push notifications"; } else if (newParams->mPushNotificationAllowed || newParams->mRemotePushNotificationAllowed) { - if (newParams->mPushNotificationConfig->getProvider().empty()) { - bool tester_env = !!linphone_config_get_int(core->config, "tester", "test_env", FALSE); - if (tester_env) newParams->mPushNotificationConfig->setProvider("liblinphone_tester"); + bool tester_env = !!linphone_config_get_int(core->config, "tester", "test_env", FALSE); + if (tester_env) newParams->mPushNotificationConfig->setProvider("liblinphone_tester"); #if TARGET_OS_IPHONE - if (tester_env) newParams->mPushNotificationConfig->setProvider("apns.dev"); + if (tester_env) newParams->mPushNotificationConfig->setProvider("apns.dev"); #endif - } newParams->mPushNotificationConfig->generatePushParams(newParams->mPushNotificationAllowed, newParams->mRemotePushNotificationAllowed); successfullyPreparedPushParameters = true; -- GitLab