Commit 93ced3b4 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

ringaccount: assume archive has password if decryption failed

Change-Id: Ia2f608a2d147f1ee03b436f3d5a6242ecd8800d1
parent 86797dd7
......@@ -1000,6 +1000,10 @@ RingAccount::changeArchivePassword(const std::string& password_old, const std::s
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()) {
archiveHasPassword_ = true;
emitSignal<DRing::ConfigurationSignal::AccountDetailsChanged>(getAccountID(), getAccountDetails());
return false;
if (password_old != password_new)
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