From 9902bb4ae7407494df33901cd7d77f74cc7252ca Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Thu, 11 Dec 2025 14:22:45 +0100 Subject: [PATCH] do not set the explicit presence when updating it according to the active status of the app (as it is not user initiated) --- Linphone/core/App.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp index 09fe38c38..078af8bff 100644 --- a/Linphone/core/App.cpp +++ b/Linphone/core/App.cpp @@ -708,6 +708,8 @@ void App::initCore() { } checkForUpdate(); mIsRestarting = false; + window->show(); + window->requestActivate(); //--------------------------------------------------------------------------------------------- lDebug() << log().arg("Creating KeyboardShortcuts"); @@ -1077,11 +1079,11 @@ void App::handleAppActivity() { auto accountPresence = accountCore->getPresence(); if ((mMainWindow && mMainWindow->isActive() || (mCallsWindow && mCallsWindow->isActive())) && accountPresence == LinphoneEnums::Presence::Away) - accountCore->lSetPresence(LinphoneEnums::Presence::Online); - if (((!mMainWindow || !mMainWindow->isActive() || !mMainWindow->isVisible()) && - (!mCallsWindow || !mCallsWindow->isActive() || !mCallsWindow->isVisible())) && - accountPresence == LinphoneEnums::Presence::Online) - accountCore->lSetPresence(LinphoneEnums::Presence::Away); + accountCore->lSetPresence(LinphoneEnums::Presence::Online, false); + else if (((!mMainWindow || !mMainWindow->isActive() || !mMainWindow->isVisible()) && + (!mCallsWindow || !mCallsWindow->isActive() || !mCallsWindow->isVisible())) && + accountPresence == LinphoneEnums::Presence::Online) + accountCore->lSetPresence(LinphoneEnums::Presence::Away, false); }; if (mAccountList) { for (auto &account : mAccountList->getSharedList())