1
0
Fork 0
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:
M66B 2019-06-23 09:48:38 +02:00
parent 5620e8b2c0
commit f0058de11b

View file

@ -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);