From 19ce2783f19bb1a3753ee99eb9a2d2de124703a5 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 11 Dec 2019 11:30:06 +0100 Subject: [PATCH] Sent message automatically ... --- .../main/java/eu/faircode/email/FragmentCompose.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index e7234295d7..7463e9f3c4 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -3597,10 +3597,13 @@ public class FragmentCompose extends FragmentBase { ServiceSynchronize.eval(context, "compose/action"); - if (action == R.id.action_send && draft.ui_snoozed != null) { - Log.i("Delayed send id=" + draft.id + " at " + new Date(draft.ui_snoozed)); - EntityMessage.snooze(context, draft.id, draft.ui_snoozed); - } + if (action == R.id.action_send) + if (draft.ui_snoozed == null) + ServiceSend.start(context); + else { + Log.i("Delayed send id=" + draft.id + " at " + new Date(draft.ui_snoozed)); + EntityMessage.snooze(context, draft.id, draft.ui_snoozed); + } return draft; }