mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Reset key alias on decryption failure
This commit is contained in:
@@ -4524,8 +4524,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
Log.w(ex);
|
||||
}
|
||||
|
||||
if (is == null)
|
||||
if (is == null) {
|
||||
if (message.identity != null)
|
||||
db.identity().setIdentitySignKeyAlias(message.identity, null);
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_invalid_key));
|
||||
}
|
||||
|
||||
// Decode message
|
||||
Properties props = MessageHelper.getSessionProperties();
|
||||
|
||||
Reference in New Issue
Block a user