1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Fixed keeping notifications

This commit is contained in:
M66B 2020-06-01 14:10:12 +02:00
parent 5b34cfb6ec
commit 87931f9cc2

View file

@ -4342,7 +4342,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (!message.seen || ops > 0)
EntityOperation.queue(context, message, EntityOperation.SEEN, true);
} else {
if (!message.ui_ignored)
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean notify_remove = prefs.getBoolean("notify_remove", true);
if (notify_remove && !message.ui_ignored)
db.message().setMessageUiIgnored(message.id, true);
}
}