mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Archive on send: always replied to message
This commit is contained in:
parent
036c5bbeb5
commit
96f1aeb6b9
1 changed files with 5 additions and 3 deletions
|
@ -4894,15 +4894,17 @@ public class FragmentCompose extends FragmentBase {
|
|||
draft.account, draft.thread, null, null);
|
||||
for (EntityMessage threaded : messages) {
|
||||
EntityFolder source = db.folder().getFolder(threaded.folder);
|
||||
if (threaded.ui_seen && (threading ||
|
||||
boolean repliedto =
|
||||
(!TextUtils.isEmpty(draft.inreplyto) &&
|
||||
draft.inreplyto.equals(threaded.msgid))) &&
|
||||
draft.inreplyto.equals(threaded.msgid));
|
||||
if ((threaded.ui_seen || repliedto) &&
|
||||
(threading || repliedto) &&
|
||||
source != null && !source.read_only &&
|
||||
archive != null && !archive.id.equals(threaded.folder) &&
|
||||
!EntityFolder.isOutgoing(source.type) &&
|
||||
!EntityFolder.TRASH.equals(source.type) &&
|
||||
!EntityFolder.JUNK.equals(source.type))
|
||||
EntityOperation.queue(context, threaded, EntityOperation.MOVE, archive.id);
|
||||
EntityOperation.queue(context, threaded, EntityOperation.MOVE, archive.id, repliedto);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue