Small improvement

This commit is contained in:
M66B 2020-06-30 22:19:32 +02:00
parent 8684ac8c5f
commit b281117afc
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ public interface DaoMessage {
" JOIN folder_view AS folder ON folder.id = message.folder" +
" WHERE account.`synchronize`" +
" AND folder.notify" +
" AND (account.created IS NULL OR message.received > account.created)" +
" AND (account.created IS NULL OR message.received > account.created OR message.sent > account.created)" +
" AND (notifying <> 0 OR NOT (message.ui_seen OR message.ui_hide))" +
" ORDER BY message.received")
LiveData<List<TupleMessageEx>> liveUnseenNotify();