default setting "Set account online on startup"==off is not honored
The default setting of having "Set account online on startup" to off
is not honored.
In RocketChatAccount::initializeAccount
this setting is checked (RuqolaGlobalConfig::self()->setOnlineAccounts()
)
and if it's true then it calls ddp()->setDefaultStatus(User::PresenceStatus::PresenceOnline);
. I'm not sure what the ddp is, but I tried making this call with PresenceOffline
in the case the setting is false just to see if that helps. But it did not.
The issue seems to be that later on (while logging on), the state of the status combobox is for some reason changed/initializaed or so, and this triggers call to RuqolaMainWindow::slotStatusChanged
which in turn calls mCurrentRocketChatAccount->setDefaultStatus(status, messageStatus)
with values User::PresenceStatus::PresenceOnline
""
-- because that is the default state of the combobox?
I'm not at all sure what the path towards fixing this would be. Should the combobox not trigger this -- I have not touched it?! Or should the check of RuqolaGlobalConfig::self()->setOnlineAccounts()
and setDefaultStatus
call be done at some later point instead?