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