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

jamiaccount: update archiveHasPassword_ when changing password

Change-Id: I1ce80a3ed5404b5d2778bbd219bda9d94c1bdb12
parent 3b1c54fa
No related branches found
No related tags found
No related merge requests found
......@@ -821,6 +821,7 @@ JamiAccount::changeArchivePassword(const std::string& password_old, const std::s
{
try {
accountManager_->changePassword(password_old, password_new);
archiveHasPassword_ = not password_new.empty();
} catch (const std::exception& ex) {
JAMI_ERR("[Account %s] Can't change archive password: %s", getAccountID().c_str(), ex.what());
if (password_old.empty()) {
......
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