mirror of
https://github.com/go-vikunja/app
synced 2024-12-10 02:47:35 +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) {
|
||||
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…
x
Reference in New Issue
Block a user