1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00

Optimize fetching new message notifictions

This commit is contained in:
M66B 2021-02-17 20:34:13 +01:00
parent 20f0aa63a7
commit bf6441040f

View file

@ -476,7 +476,7 @@ public interface DaoMessage {
" AND folder.notify" + " AND folder.notify" +
" AND (account.created IS NULL OR message.received > account.created OR message.sent > account.created)" + " AND (account.created IS NULL OR message.received > account.created OR message.sent > account.created)" +
" AND message.notifying <> " + EntityMessage.NOTIFYING_IGNORE + " AND message.notifying <> " + EntityMessage.NOTIFYING_IGNORE +
" AND (message.notifying <> 0 OR NOT (message.ui_seen OR message.ui_hide))" + " AND (message.notifying <> 0 OR NOT (message.ui_seen OR message.ui_ignored OR message.ui_hide))" +
" ORDER BY message.received DESC") " ORDER BY message.received DESC")
LiveData<List<TupleMessageEx>> liveUnseenNotify(); LiveData<List<TupleMessageEx>> liveUnseenNotify();