Mark seen on snooze

pull/147/head
M66B 6 years ago
parent 2a88cccd2a
commit da9c2062d4

@ -1061,6 +1061,9 @@ public class FragmentMessages extends FragmentBase {
wakeup = null;
DB db = DB.getInstance(context);
try {
db.beginTransaction();
for (long id : ids) {
EntityMessage message = db.message().getMessage(id);
if (message != null) {
@ -1069,8 +1072,14 @@ public class FragmentMessages extends FragmentBase {
for (EntityMessage threaded : messages) {
db.message().setMessageSnoozed(threaded.id, wakeup);
EntityMessage.snooze(context, threaded.id, wakeup);
EntityOperation.queue(context, db, threaded, EntityOperation.SEEN, true);
}
}
}
db.setTransactionSuccessful();
} finally {
db.endTransaction();
}
return null;

Loading…
Cancel
Save