From c8ef1d8270e7e11361256d8a3d7fa27544e78846 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 8 Nov 2019 08:25:42 +0100 Subject: [PATCH] Create new message on notify wake up --- app/src/main/java/eu/faircode/email/ServiceUI.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceUI.java b/app/src/main/java/eu/faircode/email/ServiceUI.java index db73aa1b5f..956503282f 100644 --- a/app/src/main/java/eu/faircode/email/ServiceUI.java +++ b/app/src/main/java/eu/faircode/email/ServiceUI.java @@ -386,8 +386,12 @@ public class ServiceUI extends IntentService { Log.i("Delayed send id=" + message.id); EntityOperation.queue(this, message, EntityOperation.SEND); } else { - if (folder.notify) + if (folder.notify) { + message.id = null; + message.id = db.message().insertMessage(message); + db.message().deleteMessage(id); EntityOperation.queue(this, message, EntityOperation.SEEN, false, false); + } } db.setTransactionSuccessful();