From eb49332b534f23302ef21c7f76bf5d9708f78007 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 13 Sep 2020 15:01:57 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/Core.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index fd57978288..7d2578ba21 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -898,10 +898,10 @@ class Core { try { Log.i(folder.name + " deleting uid=" + message.uid); iexisting.setFlag(Flags.Flag.DELETED, true); + ifolder.expunge(); } catch (MessageRemovedException ignored) { Log.w(folder.name + " existing gone uid=" + message.uid); } - ifolder.expunge(); } } @@ -1018,9 +1018,10 @@ class Core { try { for (Message imessage : map.keySet()) imessage.setFlag(Flags.Flag.DELETED, true); - } catch (MessageRemovedException ignored) { + ifolder.expunge(); + } catch (MessageRemovedException ex) { + Log.w(ex); } - ifolder.expunge(); } else { int count = MessageHelper.getMessageCount(ifolder); db.folder().setFolderTotal(folder.id, count < 0 ? null : count);