mirror of https://github.com/M66B/FairEmail.git
Skip marking seen on snooze/hide
This commit is contained in:
parent
12b14955a0
commit
9ef30a653e
|
@ -3206,6 +3206,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
return null;
|
||||
|
||||
db.message().setMessageSnoozed(message.id, hide ? Long.MAX_VALUE : null);
|
||||
db.message().setMessageUiIgnored(message.id, true);
|
||||
EntityMessage.snooze(context, message.id, hide ? Long.MAX_VALUE : null);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
|
|
|
@ -471,12 +471,11 @@ public class EntityRule {
|
|||
|
||||
DB db = DB.getInstance(context);
|
||||
db.message().setMessageSnoozed(message.id, wakeup);
|
||||
db.message().setMessageUiIgnored(message.id, true);
|
||||
EntityMessage.snooze(context, message.id, wakeup);
|
||||
|
||||
message.ui_snoozed = wakeup;
|
||||
|
||||
onActionSeen(context, message, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -2035,6 +2035,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
message.account, message.thread, threading ? null : id, message.folder);
|
||||
for (EntityMessage threaded : messages) {
|
||||
db.message().setMessageSnoozed(threaded.id, hide ? Long.MAX_VALUE : null);
|
||||
db.message().setMessageUiIgnored(message.id, true);
|
||||
EntityMessage.snooze(context, threaded.id, hide ? Long.MAX_VALUE : null);
|
||||
}
|
||||
}
|
||||
|
@ -4332,7 +4333,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
account, thread, threading ? null : id, null);
|
||||
for (EntityMessage threaded : messages) {
|
||||
db.message().setMessageSnoozed(threaded.id, wakeup);
|
||||
EntityOperation.queue(context, threaded, EntityOperation.SEEN, true);
|
||||
db.message().setMessageUiIgnored(message.id, true);
|
||||
EntityMessage.snooze(context, threaded.id, wakeup);
|
||||
}
|
||||
|
||||
|
@ -4391,8 +4392,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
message.account, message.thread, threading ? null : id, message.folder);
|
||||
for (EntityMessage threaded : messages) {
|
||||
db.message().setMessageSnoozed(threaded.id, wakeup);
|
||||
db.message().setMessageUiIgnored(message.id, true);
|
||||
EntityMessage.snooze(context, threaded.id, wakeup);
|
||||
EntityOperation.queue(context, threaded, EntityOperation.SEEN, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -332,7 +332,7 @@ public class ServiceUI extends IntentService {
|
|||
return;
|
||||
|
||||
db.message().setMessageSnoozed(id, wakeup);
|
||||
EntityOperation.queue(this, message, EntityOperation.SEEN, true);
|
||||
db.message().setMessageUiIgnored(message.id, true);
|
||||
EntityMessage.snooze(this, id, wakeup);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
|
|
Loading…
Reference in New Issue