mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Added mark read option to snooze rule
This commit is contained in:
@@ -454,6 +454,7 @@ public class EntityRule {
|
||||
private boolean onActionSnooze(Context context, EntityMessage message, JSONObject jargs) throws JSONException {
|
||||
int duration = jargs.getInt("duration");
|
||||
boolean schedule_end = jargs.optBoolean("schedule_end", false);
|
||||
boolean seen = jargs.optBoolean("seen", false);
|
||||
|
||||
long wakeup;
|
||||
if (schedule_end) {
|
||||
@@ -476,6 +477,9 @@ public class EntityRule {
|
||||
|
||||
message.ui_snoozed = wakeup;
|
||||
|
||||
if (seen)
|
||||
onActionSeen(context, message, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user