cancel magic mode attribute after changing password once

This commit is contained in:
Daniel Gultsch 2018-11-22 12:31:06 +01:00
parent 66850a525a
commit f63a209881
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
return;
}
if (mAccount != null) {
if (mInitMode && mAccount.isOptionSet(Account.OPTION_MAGIC_CREATE)) {
if (mAccount.isOptionSet(Account.OPTION_MAGIC_CREATE)) {
mAccount.setOption(Account.OPTION_MAGIC_CREATE, mAccount.getPassword().contains(password));
}
mAccount.setJid(jid);