From 6d3fac14b2d6a39f3e4c42325268fa5aab59ebf7 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 25 Mar 2020 08:14:32 +0100 Subject: [PATCH] Revert "Prevent duplicate messages" This reverts commit 2cf36bbaac6ac34b3d1c66d7814aaae2bee72e02. --- app/src/main/java/eu/faircode/email/Core.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 9fd4557622..2764bfc837 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2089,7 +2089,7 @@ class Core { " uid=" + dup.uid + "/" + uid + " msgid=" + msgid + " thread=" + thread); - if (dup.uid == null || dup.uid <= uid) { + if (dup.uid == null) { Log.i(folder.name + " set uid=" + uid); dup.uid = uid; dup.thread = thread; @@ -2102,10 +2102,8 @@ class Core { dup.error = null; message = dup; - update = true; - process = (dup.uid == null); - } else - return null; + process = true; + } } if (dup.flagged && dup.color != null)