Show unseen message count in widget/badge

pull/161/head
M66B 5 years ago
parent 6439b25941
commit c44c436f5e

@ -1943,7 +1943,7 @@ class Core {
int unseen = 0;
Map<String, List<TupleMessageEx>> groupMessages = new HashMap<>();
for (TupleMessageEx message : messages) {
if (!(message.ui_seen || message.ui_ignored || message.ui_hide != 0))
if (!message.ui_seen && message.ui_hide == 0)
unseen++;
// Check if notification channel enabled

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

Loading…
Cancel
Save