Skip to content
Snippets Groups Projects
Commit bad09611 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

newaccountmodel: get current status when loading accounts


Change-Id: I49f16fdd9f05e3ca2ef4a638abeca36de5c05baa
Reviewed-by: default avatarHugo Lefeuvre <hugo.lefeuvre@savoirfairelinux.com>
parent 0aab9a20
No related branches found
No related tags found
No related merge requests found
......@@ -320,6 +320,8 @@ NewAccountModelPimpl::addToAccounts(const std::string& accountId)
owner.conversationModel = std::make_unique<ConversationModel>(owner, lrc, database, callbacksHandler, behaviorController);
owner.deviceModel = std::make_unique<NewDeviceModel>(owner, callbacksHandler);
owner.accountModel = &linked;
MapStringString volatileDetails = ConfigurationManager::instance().getVolatileAccountDetails(accountId.c_str());
owner.status = lrc::api::account::to_status(toStdString(volatileDetails[ConfProperties::Registration::STATUS]));
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment