Browse Source

Set draft thread ID

main
M66B 6 years ago
parent
commit
3c7c3df8d2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/eu/faircode/email/FragmentCompose.java

+ 2
- 1
app/src/main/java/eu/faircode/email/FragmentCompose.java View File

@ -854,6 +854,8 @@ public class FragmentCompose extends FragmentEx {
draft.msgid = EntityMessage.generateMessageId(); draft.msgid = EntityMessage.generateMessageId();
if (ref == null) { if (ref == null) {
draft.thread = draft.msgid;
try { try {
String to = args.getString("to"); String to = args.getString("to");
draft.to = (TextUtils.isEmpty(to) ? null : InternetAddress.parse(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)) if (pro && !TextUtils.isEmpty(account.signature))
body += account.signature; body += account.signature;
} else { } else {
draft.thread = ref.thread; draft.thread = ref.thread;


Loading…
Cancel
Save