mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 00:07:01 +00:00
With calendar sync on and the calendar app reminding, Bulwark skipped its own reminders for the synced calendars whenever sync was on in the app, even when the phone's calendar received nothing: its calendar sync paused in Android's account settings, Android's auto-sync off, or the calendar permission revoked. Events created on the server meanwhile never reached the phone, and nobody reminded of them. The reminder filter now keeps what Android last said about each account (the permission, `getMasterSyncAutomatically` and the calendar's `getSyncAutomatically`) and stays quiet only while the phone's calendar receives events. Auto-sync off counts as not receiving: Android then runs manual syncs only, and the periodic, pushed and app-triggered syncs are not manual. Android's side is read when the scheduler subscribes and again whenever the filter is asked for; a changed answer makes the scheduler reschedule. Until it was read, Bulwark reminds: a double reminder is better than a missed one.