Commit a0626a25 authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

jamiaccount: save configuration on password change



Change-Id: I6c287483dcf80a723be6619545351cece9361b52
Reviewed-by: Sébastien Blin's avatarSébastien Blin <sebastien.blin@savoirfairelinux.com>
parent 6b3642d2
......@@ -330,7 +330,10 @@ bool
changeAccountPassword(const std::string& accountID, const std::string& password_old, const std::string& password_new)
{
if (auto acc = jami::Manager::instance().getAccount<jami::JamiAccount>(accountID))
return acc->changeArchivePassword(password_old, password_new);
if (acc->changeArchivePassword(password_old, password_new)) {
jami::Manager::instance().saveConfig(acc);
return true;
}
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment