From cdb745d0b7e3abdfc5971e2889af1cbb951e5c8f Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 13 Sep 2018 15:58:10 +0000 Subject: [PATCH] Fixed handling message removed exception --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index f836ee18..beb73e3a 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -868,10 +868,10 @@ public class ServiceSynchronize extends LifecycleService { " args=" + op.args); EntityMessage message = db.message().getMessage(op.message); - if (message == null) - throw new MessageRemovedException(); - try { + if (message == null) + throw new MessageRemovedException(); + db.message().setMessageError(message.id, null); if (message.uid == null &&