From 18dcc788b5caa7622d222d45db38641dc859d434 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 13 May 2019 11:09:01 +0200 Subject: [PATCH] Fixed send at with delay sending --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 914f35a31a..5293e569a7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -2682,7 +2682,7 @@ public class FragmentCompose extends FragmentBase { // Delay sending message SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); int send_delayed = prefs.getInt("send_delayed", 0); - if (send_delayed != 0) { + if (draft.ui_snoozed == null && send_delayed != 0) { draft.ui_snoozed = new Date().getTime() + send_delayed * 1000L; db.message().setMessageSnoozed(draft.id, draft.ui_snoozed); }