mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 01:51:24 +01:00
Rule snooze relative to message received time
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user