fix(events): decrement the live like count on un-like #112

Merged
padreug merged 1 commit from fix/events-like-count-unlike into dev 2026-06-17 10:05:08 +00:00

1 commit

Author SHA1 Message Date
35c62d6ff1 fix(events): decrement the live like count on un-like
The like count only watched bookmark lists by #a, so when someone removed
an event their new (replaceable) list no longer matched the filter and
never arrived — the count stayed stale until reload. Also watch known
likers by `authors` and track each author's current liked-coords, diffing
prev vs next on every update so a dropped coord decrements live. Verified
end-to-end against a relay: a like incremented the count and the same
key's updated list (coord dropped) decremented it with no reload.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 11:27:16 +02:00