Commit 766dd64f authored by Finn Herzfeld's avatar Finn Herzfeld 🌵

Don't call handleMessage if decryptMessage throws an exception

might make #28 less painful
parent c9678fc3
Pipeline #3884 passed with stages
in 7 minutes and 40 seconds
......@@ -1243,10 +1243,12 @@ class Manager {
} catch (Exception e) {
exception = e;
}
try {
handleMessage(envelope, content, ignoreAttachments);
} catch (NotAGroupMemberException | GroupNotFoundException | AttachmentInvalidException | UntrustedIdentityException e) {
logger.catching(e);
if(exception == null) {
try {
handleMessage(envelope, content, ignoreAttachments);
} catch (NotAGroupMemberException | GroupNotFoundException | AttachmentInvalidException | UntrustedIdentityException e) {
logger.catching(e);
}
}
}
accountData.save();
......
Markdown is supported
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