mirror of https://github.com/M66B/FairEmail.git
Auto ignore on expand
This commit is contained in:
parent
3e9aa38613
commit
da37da22c4
|
@ -3852,9 +3852,13 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
if (!message.content)
|
if (!message.content)
|
||||||
EntityOperation.queue(context, message, EntityOperation.BODY);
|
EntityOperation.queue(context, message, EntityOperation.BODY);
|
||||||
|
|
||||||
|
if (!folder.read_only)
|
||||||
|
if (account.auto_seen) {
|
||||||
int ops = db.operation().getOperationCount(message.folder, message.id, EntityOperation.SEEN);
|
int ops = db.operation().getOperationCount(message.folder, message.id, EntityOperation.SEEN);
|
||||||
if (account.auto_seen && !folder.read_only && (!message.seen || ops > 0))
|
if (!message.seen || ops > 0)
|
||||||
EntityOperation.queue(context, message, EntityOperation.SEEN, true);
|
EntityOperation.queue(context, message, EntityOperation.SEEN, true);
|
||||||
|
} else
|
||||||
|
db.message().setMessageUiIgnored(message.id, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
db.setTransactionSuccessful();
|
db.setTransactionSuccessful();
|
||||||
|
|
Loading…
Reference in New Issue