mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Mark similar messages seen, flagged and answered
This commit is contained in:
parent
1d31e1848c
commit
4e2d91af6a
1 changed files with 11 additions and 4 deletions
|
@ -84,12 +84,19 @@ public class EntityOperation {
|
|||
queue(db, message.folder, message.id, name, jargs);
|
||||
|
||||
if (SEEN.equals(name)) {
|
||||
db.message().setMessageUiSeen(message.id, (boolean) value);
|
||||
db.message().setMessageUiIgnored(message.id, true);
|
||||
for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid, message.ui_found)) {
|
||||
db.message().setMessageUiSeen(similar.id, (boolean) value);
|
||||
db.message().setMessageUiIgnored(similar.id, true);
|
||||
}
|
||||
|
||||
} else if (FLAG.equals(name))
|
||||
db.message().setMessageUiFlagged(message.id, (boolean) value);
|
||||
for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid, message.ui_found))
|
||||
db.message().setMessageUiFlagged(similar.id, (boolean) value);
|
||||
|
||||
else if (ANSWERED.equals(name))
|
||||
db.message().setMessageUiAnswered(message.id, (boolean) value);
|
||||
for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid, message.ui_found))
|
||||
db.message().setMessageUiAnswered(similar.id, (boolean) value);
|
||||
|
||||
else if (MOVE.equals(name))
|
||||
db.message().setMessageUiHide(message.id, true);
|
||||
else if (DELETE.equals(name))
|
||||
|
|
Loading…
Reference in a new issue