buzz
buzz copied to clipboard
fix(relay): re-emit group discovery events on redundant join
Summary
handle_join_requestreturned early with no events when the user was already a member, leaving the client unable to reconcile its membership state after relaunch- Re-emit group discovery events (kind 39000/39001/39002) on redundant join so the client can reconcile
Fixes #3796
Testing
- Live: created a channel, joined it, sent 4 redundant join requests — each emitted fresh 39000/39001/39002 events (verified in DB)
small and right for #3796. could you cover the redundant-join path with a unit/integration test so it doesnt regress quietly?
done, added a test for this
re-emitting discovery on redundant join should stop phantom non-members. any chance of event storms if join is retried in a loop?
no storm — they're NIP-33 replaceable events, so each re-emit overwrites the previous one instead of piling up