From 3c7c3df8d255e8415e6cace58b97586e4b33c22b Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 18 Oct 2018 07:56:13 +0000 Subject: [PATCH] Set draft thread ID --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 3 ++- 1 file changed, 2 insertions(+), 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 8da7a8af..a588cb94 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -854,6 +854,8 @@ public class FragmentCompose extends FragmentEx { draft.msgid = EntityMessage.generateMessageId(); if (ref == null) { + draft.thread = draft.msgid; + try { String to = args.getString("to"); draft.to = (TextUtils.isEmpty(to) ? null : InternetAddress.parse(to)); @@ -884,7 +886,6 @@ public class FragmentCompose extends FragmentEx { if (pro && !TextUtils.isEmpty(account.signature)) body += account.signature; - } else { draft.thread = ref.thread;