Browse Source

Reply to sender

Fixes #38
main
M66B 6 years ago
parent
commit
43fb46615e
2 changed files with 11 additions and 3 deletions
  1. +0
    -2
      app/src/main/java/eu/faircode/email/EntityMessage.java
  2. +11
    -1
      app/src/main/java/eu/faircode/email/FragmentCompose.java

+ 0
- 2
app/src/main/java/eu/faircode/email/EntityMessage.java View File

@ -19,8 +19,6 @@ package eu.faircode.email;
Copyright 2018 by Marcel Bokhorst (M66B)
*/
import android.text.TextUtils;
import java.util.Date;
import java.util.Random;


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

@ -538,9 +538,19 @@ public class FragmentCompose extends FragmentEx {
return draft;
EntityMessage ref = db.message().getMessage(reference);
if (ref != null)
if (ref != null) {
account = ref.account;
// Reply to sender
EntityFolder rfolder = db.folder().getFolder(ref.folder);
if (EntityFolder.SENT.equals(rfolder.type)) {
Address[] tmp = ref.to;
ref.to = ref.from;
ref.reply = null;
ref.from = tmp;
}
}
EntityFolder drafts;
drafts = db.folder().getFolderByType(account, EntityFolder.DRAFTS);
if (drafts == null)


Loading…
Cancel
Save