mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Restore notifications on boot/update
This commit is contained in:
@@ -1387,6 +1387,9 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
try {
|
||||
DB db = DB.getInstance(context);
|
||||
|
||||
// Restore notifications
|
||||
db.message().clearNotifyingMessages();
|
||||
|
||||
// Restore snooze timers
|
||||
for (EntityMessage message : db.message().getSnoozed())
|
||||
EntityMessage.snooze(context, message.id, message.ui_snoozed);
|
||||
|
||||
Reference in New Issue
Block a user