1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 14:41:08 +00:00

Move to archive/trash without marking read

This commit is contained in:
M66B 2018-12-05 19:24:08 +01:00
parent 0476713778
commit 2115ac3208

View file

@ -338,18 +338,14 @@ public class ServiceSynchronize extends LifecycleService {
EntityFolder archive = db.folder().getFolderByType(message.account, EntityFolder.ARCHIVE);
if (archive == null)
archive = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
if (archive != null) {
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
if (archive != null)
EntityOperation.queue(db, message, EntityOperation.MOVE, archive.id);
}
break;
case "trash":
EntityFolder trash = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
if (trash != null) {
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
if (trash != null)
EntityOperation.queue(db, message, EntityOperation.MOVE, trash.id);
}
break;
case "ignore":