Prevent new message notifications on undo swipe

This commit is contained in:
M66B 2018-12-27 17:58:43 +00:00
parent 8b18e1ac4c
commit 24add89a98
1 changed files with 2 additions and 0 deletions

View File

@ -577,6 +577,8 @@ public class FragmentMessages extends FragmentEx {
for (EntityMessage threaded : messages) { for (EntityMessage threaded : messages) {
result.ids.add(threaded.id); result.ids.add(threaded.id);
db.message().setMessageUiHide(threaded.id, true); db.message().setMessageUiHide(threaded.id, true);
// Prevent new message notification on undo
db.message().setMessageUiIgnored(threaded.id, true);
} }
db.setTransactionSuccessful(); db.setTransactionSuccessful();