mirror of https://github.com/M66B/FairEmail.git
Ignore on seen only
This commit is contained in:
parent
9f1a25d650
commit
ec793d30f6
|
@ -129,9 +129,11 @@ public class EntityOperation {
|
||||||
private static void queue(Context context, DB db, EntityMessage message, String name, JSONArray jargs) {
|
private static void queue(Context context, DB db, EntityMessage message, String name, JSONArray jargs) {
|
||||||
try {
|
try {
|
||||||
if (SEEN.equals(name)) {
|
if (SEEN.equals(name)) {
|
||||||
|
boolean seen = jargs.getBoolean(0);
|
||||||
for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid)) {
|
for (EntityMessage similar : db.message().getMessageByMsgId(message.account, message.msgid)) {
|
||||||
db.message().setMessageUiSeen(similar.id, jargs.getBoolean(0));
|
db.message().setMessageUiSeen(similar.id, jargs.getBoolean(0));
|
||||||
db.message().setMessageUiIgnored(similar.id, true);
|
if (seen)
|
||||||
|
db.message().setMessageUiIgnored(similar.id, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (FLAG.equals(name))
|
} else if (FLAG.equals(name))
|
||||||
|
|
Loading…
Reference in New Issue