Skip to content

fix(bookmarks): open bookmark panel from reminder tap and fix tombstone purge#818

Closed
Just-Insane wants to merge 2 commits into
SableClient:devfrom
Just-Insane:fix/bookmarks
Closed

fix(bookmarks): open bookmark panel from reminder tap and fix tombstone purge#818
Just-Insane wants to merge 2 commits into
SableClient:devfrom
Just-Insane:fix/bookmarks

Conversation

@Just-Insane
Copy link
Copy Markdown
Contributor

@Just-Insane Just-Insane commented May 14, 2026

Closing — these commits have been cherry-picked into feat/message-bookmarks (#601).

After checkDueReminders fires a bookmark reminder notification, the SW
persists only the remaining (non-due) reminders to its cache — but
useReminderSync would immediately overwrite that cache by pushing the
full list from Matrix account data (which hadn't been updated).

Fix: the SW now posts a { type: 'remindersFired', bookmarkIds } message
to all open window clients after firing. useReminderSync listens for
this message and calls clearBookmarkReminder for each fired ID, updating
account data so the next syncReminders call pushes the correct subset.
…nimal purge tombstone

- sw.ts: include isReminder in the notificationClick postMessage so the
  running app can handle reminder taps correctly without falling through
  to the "no roomId" early return.
- ClientNonUIFeatures.tsx: HandleNotificationClick now opens the
  bookmarks panel (bookmarksPanelAtom) when isReminder is true, instead
  of doing nothing (previously bailed out at the !roomId guard).
- bookmarkRepository.ts: purgeBookmark now writes the minimal tombstone
  { deleted: true, purged: true } instead of spreading the original
  bookmark content. The original room/event metadata no longer lingers
  in account data after a permanent archive deletion.
@Just-Insane Just-Insane deleted the fix/bookmarks branch May 14, 2026 01:53
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