Skip to content

feat(sync): allow silencing startup sync notifications on mobile - #66

Open
scheerchristian wants to merge 1 commit into
siosig:developfrom
scheerchristian:064-disable-sync-notifications
Open

scheerchristian wants to merge 1 commit into
siosig:developfrom
scheerchristian:064-disable-sync-notifications

Conversation

@scheerchristian

Copy link
Copy Markdown

Summary

Adds a "Startup sync notifications" toggle (default ON). When disabled, the startup sync runs silently — the engine swaps its active status bar for a no-op, so the mobile "Syncing…" / completion toasts never appear.

Motivation

Closes #64 — on mobile the startup-sync toast has to be dismissed every time Obsidian reopens.

Changes

  • SyncEngine.syncManual() accepts a silent flag and swaps in NullStatusBar so no status surface is driven. Watch mode and the mirror keep their own injected status bar, so they are unaffected.
  • main.ts passes silent for the startup sync based on the new setting.
  • New setting startupSyncNotificationsEnabled (toggle, DEFAULT_SETTINGS default true), declared in settingDefinitions.ts.
  • NullStatusBar doc updated to reflect the new use.
  • Tests: new silentSync.test.ts pins the silent/non-silent wiring at the real SyncEngine level; settingDefinitions.test.ts baseline updated for the new row.

Desktop is unaffected (it has no toast); the toggle is inert there.

Testing

  • pnpm test (a-no-nextcloud layer): 1797 passing.
  • Manually verified on mobile.

Startup sync now honors a new "Startup sync notifications" toggle (default ON). When disabled, the startup sync runs silently: the engine swaps its active status bar for a no-op, so the mobile "Syncing…" and completion toasts never appear. Desktop is unaffected (it has no toast); watch mode and the mirror keep their own injected status bar.

Closes siosig#64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant