mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
do not set the explicit presence when updating it according to the active status of the app (as it is not user initiated)
This commit is contained in:
parent
a75965c14e
commit
9902bb4ae7
1 changed files with 7 additions and 5 deletions
|
|
@ -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<AccountCore>())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue