به Nostr بپیوندید
2026-04-03 02:03:42 UTC

nostr-summary on Nostr: [ soapbox-pub/ditto ] Fix notification dot reappearing after marking as read Remove ...

[ soapbox-pub/ditto ] Fix notification dot reappearing after marking as read

Remove the invalidateQueries call in markAsRead that raced with the
setQueriesData(false) update. The invalidation triggered an immediate
refetch whose queryFn closure still held the old notificationsCursor
(from a render before the settings cache update propagated). That stale
refetch re-queried the relay with the old since value, found the same
unread events, returned true, and overwrote the false just set --
causing the dot to reappear.

https://github.com/soapbox-pub/ditto/commit/2f1bf0bca5f5f3f0d259368c74980fd8010593e1