From bf6441040f1faff330a12c9c6db4ea75d27f8461 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 17 Feb 2021 20:34:13 +0100 Subject: [PATCH] Optimize fetching new message notifictions --- app/src/main/java/eu/faircode/email/DaoMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DaoMessage.java b/app/src/main/java/eu/faircode/email/DaoMessage.java index 2e74c6bfbc..652e87d905 100644 --- a/app/src/main/java/eu/faircode/email/DaoMessage.java +++ b/app/src/main/java/eu/faircode/email/DaoMessage.java @@ -476,7 +476,7 @@ public interface DaoMessage { " AND folder.notify" + " AND (account.created IS NULL OR message.received > account.created OR message.sent > account.created)" + " 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") LiveData> liveUnseenNotify();