|
|
@ -6894,13 +6894,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
|
|
|
|
|
|
|
|
List<EntityMessage> messages = db.message().getMessagesByThread(
|
|
|
|
List<EntityMessage> messages = db.message().getMessagesByThread(
|
|
|
|
account, thread, threading ? null : id, null);
|
|
|
|
account, thread, threading ? null : id, null);
|
|
|
|
for (EntityMessage threaded : messages) {
|
|
|
|
for (EntityMessage threaded : messages)
|
|
|
|
db.message().setMessageSnoozed(threaded.id, wakeup);
|
|
|
|
if (threaded.ui_unsnoozed && wakeup == null)
|
|
|
|
db.message().setMessageUiIgnored(threaded.id, true);
|
|
|
|
db.message().setMessageUnsnoozed(threaded.id, false);
|
|
|
|
if (!hide && flag_snoozed && threaded.folder.equals(message.folder))
|
|
|
|
else {
|
|
|
|
EntityOperation.queue(context, threaded, EntityOperation.FLAG, wakeup != null);
|
|
|
|
db.message().setMessageSnoozed(threaded.id, wakeup);
|
|
|
|
EntityMessage.snooze(context, threaded.id, wakeup);
|
|
|
|
db.message().setMessageUiIgnored(threaded.id, true);
|
|
|
|
}
|
|
|
|
if (!hide && flag_snoozed && threaded.folder.equals(message.folder))
|
|
|
|
|
|
|
|
EntityOperation.queue(context, threaded, EntityOperation.FLAG, wakeup != null);
|
|
|
|
|
|
|
|
EntityMessage.snooze(context, threaded.id, wakeup);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
@ -6958,13 +6961,16 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
|
|
|
|
|
|
|
|
List<EntityMessage> messages = db.message().getMessagesByThread(
|
|
|
|
List<EntityMessage> messages = db.message().getMessagesByThread(
|
|
|
|
message.account, message.thread, threading ? null : id, message.folder);
|
|
|
|
message.account, message.thread, threading ? null : id, message.folder);
|
|
|
|
for (EntityMessage threaded : messages) {
|
|
|
|
for (EntityMessage threaded : messages)
|
|
|
|
db.message().setMessageSnoozed(threaded.id, wakeup);
|
|
|
|
if (threaded.ui_unsnoozed && wakeup == null)
|
|
|
|
db.message().setMessageUiIgnored(message.id, true);
|
|
|
|
db.message().setMessageUnsnoozed(threaded.id, false);
|
|
|
|
if (flag_snoozed && threaded.folder.equals(message.folder))
|
|
|
|
else {
|
|
|
|
EntityOperation.queue(context, threaded, EntityOperation.FLAG, wakeup != null);
|
|
|
|
db.message().setMessageSnoozed(threaded.id, wakeup);
|
|
|
|
EntityMessage.snooze(context, threaded.id, wakeup);
|
|
|
|
db.message().setMessageUiIgnored(message.id, true);
|
|
|
|
}
|
|
|
|
if (flag_snoozed && threaded.folder.equals(message.folder))
|
|
|
|
|
|
|
|
EntityOperation.queue(context, threaded, EntityOperation.FLAG, wakeup != null);
|
|
|
|
|
|
|
|
EntityMessage.snooze(context, threaded.id, wakeup);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|