mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Rule snooze relative to message received time
This commit is contained in:
parent
8762509e80
commit
ac8b92f8c0
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ public class EntityRule {
|
|||
|
||||
private void onActionSnooze(Context context, EntityMessage message, JSONObject jargs) throws JSONException {
|
||||
int duration = jargs.getInt("duration");
|
||||
long wakeup = new Date().getTime() + duration * 3600 * 1000L;
|
||||
long wakeup = message.received + duration * 3600 * 1000L;
|
||||
|
||||
DB db = DB.getInstance(context);
|
||||
db.message().setMessageSnoozed(message.id, wakeup);
|
||||
|
|
Loading…
Reference in a new issue