mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 01:21:11 +01:00
Skip snooze if in past
This commit is contained in:
@@ -334,6 +334,9 @@ public class EntityRule {
|
||||
int duration = jargs.getInt("duration");
|
||||
long wakeup = message.received + duration * 3600 * 1000L;
|
||||
|
||||
if (wakeup < new Date().getTime())
|
||||
return;
|
||||
|
||||
DB db = DB.getInstance(context);
|
||||
db.message().setMessageSnoozed(message.id, wakeup);
|
||||
EntityMessage.snooze(context, message.id, wakeup);
|
||||
|
||||
Reference in New Issue
Block a user