mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Use default schedule for end of time condition
This commit is contained in:
@@ -351,10 +351,7 @@ public class EntityRule {
|
||||
JSONObject jcondition = new JSONObject(condition);
|
||||
JSONObject jschedule = jcondition.optJSONObject("schedule");
|
||||
|
||||
if (jschedule == null)
|
||||
throw new IllegalArgumentException("Rule snooze schedule not found");
|
||||
|
||||
int end = jschedule.optInt("end", 0);
|
||||
int end = (jschedule == null ? 0 : jschedule.optInt("end", 0));
|
||||
Calendar cal = getRelativeCalendar(end, message.received);
|
||||
wakeup = cal.getTimeInMillis() + duration * 3600 * 1000L;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user