mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Skip snooze if in past
This commit is contained in:
parent
5620e8b2c0
commit
f0058de11b
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue