From 6a055780831d32e03aea8f8c50eadbf8d40a785c Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 10 Jan 2021 18:47:29 +0100 Subject: [PATCH] Classifier: small improvement --- app/src/main/java/eu/faircode/email/MessageClassifier.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageClassifier.java b/app/src/main/java/eu/faircode/email/MessageClassifier.java index 1acd3900eb..f4622e5086 100644 --- a/app/src/main/java/eu/faircode/email/MessageClassifier.java +++ b/app/src/main/java/eu/faircode/email/MessageClassifier.java @@ -116,11 +116,12 @@ public class MessageClassifier { } db.setTransactionSuccessful(); - - accountMsgIds.get(folder.account).add(message.msgid); } finally { db.endTransaction(); } + + if (message.ui_hide) + accountMsgIds.get(folder.account).add(message.msgid); } dirty = true;