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:
parent
20f0aa63a7
commit
bf6441040f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue