From 930fb9232779dd854cba0c7c0e9a1203420fbd08 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 2 Aug 2018 17:58:40 +0000 Subject: [PATCH] Skip operation seen for local only messages (outbox, unappended drafts) --- app/src/main/java/eu/faircode/email/EntityOperation.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index ad135224..a881090c 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -74,8 +74,13 @@ public class EntityOperation { DaoOperation dao = DB.getInstance(context).operation(); int purged = 0; - if (SEEN.equals(name)) + if (SEEN.equals(name)) { + if (message.uid == null) { + // local message + return; + } purged = dao.deleteOperations(message.id, name); + } EntityOperation operation = new EntityOperation(); operation.message = message.id;