From 3749521ffb2b079a57ccf6790e1b8fe6d19af0f1 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 19 Jun 2019 07:23:46 +0200 Subject: [PATCH] Always add draft once --- app/src/main/java/eu/faircode/email/Core.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index bb6e82d216..19ad603c7d 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -191,8 +191,9 @@ class Core { boolean squash = false; for (int j = i + 1; j < ops.size(); j++) { EntityOperation next = ops.get(j); - if (next.message != null && next.message.equals(op.message) && - (EntityOperation.ADD.equals(next.name) || EntityOperation.DELETE.equals(next.name))) { + if (next.message != null && + next.message.equals(op.message) && + EntityOperation.ADD.equals(next.name)) { squash = true; break; }