mirror of
https://github.com/go-vikunja/app
synced 2024-06-05 12:09:52 +00:00
no need to schedule notification if it has no due date set
This commit is contained in:
parent
a6fab24598
commit
3688df4811
|
@ -109,7 +109,8 @@ class VikunjaGlobalState extends State<VikunjaGlobal> {
|
||||||
task.reminders.forEach((reminder) {
|
task.reminders.forEach((reminder) {
|
||||||
scheduleNotification("This is your reminder for '" + task.title + "'", task.description, notificationsPlugin, reminder);
|
scheduleNotification("This is your reminder for '" + task.title + "'", task.description, notificationsPlugin, reminder);
|
||||||
});
|
});
|
||||||
scheduleNotification("The task '" + task.title + "' is due.", task.description, notificationsPlugin, task.due);
|
if(task.due != null)
|
||||||
|
scheduleNotification("The task '" + task.title + "' is due.", task.description, notificationsPlugin, task.due);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user