mirror of https://github.com/M66B/FairEmail.git
Mark read on archive/trash from notification
This commit is contained in:
parent
ef2c172b8a
commit
74d2a72e15
|
@ -338,14 +338,18 @@ public class ServiceSynchronize extends LifecycleService {
|
||||||
EntityFolder archive = db.folder().getFolderByType(message.account, EntityFolder.ARCHIVE);
|
EntityFolder archive = db.folder().getFolderByType(message.account, EntityFolder.ARCHIVE);
|
||||||
if (archive == null)
|
if (archive == null)
|
||||||
archive = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
|
archive = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
|
||||||
if (archive != null)
|
if (archive != null) {
|
||||||
|
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
|
||||||
EntityOperation.queue(db, message, EntityOperation.MOVE, archive.id);
|
EntityOperation.queue(db, message, EntityOperation.MOVE, archive.id);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "trash":
|
case "trash":
|
||||||
EntityFolder trash = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
|
EntityFolder trash = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
|
||||||
if (trash != null)
|
if (trash != null) {
|
||||||
|
EntityOperation.queue(db, message, EntityOperation.SEEN, true);
|
||||||
EntityOperation.queue(db, message, EntityOperation.MOVE, trash.id);
|
EntityOperation.queue(db, message, EntityOperation.MOVE, trash.id);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "ignore":
|
case "ignore":
|
||||||
|
|
Loading…
Reference in New Issue