Archive on send: always replied to message

This commit is contained in:
M66B 2021-01-24 19:03:29 +01:00
parent 036c5bbeb5
commit 96f1aeb6b9
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}
}
}