Fix deriveEventsByIdForUrl relay scoping to prevent cross-space event leakage #214
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
deriveEventsByIdForUrlcurrently reacts to tracker add/remove updates for any relay URL, not strictly the store target URL. This causes per-relay stores to include events from other relays and remove events incorrectly when unrelated relay mappings change.Impact:
Expected
Related to: Improve Performace (#182)
Hey @hodlbod, what are your thoughts on this?
I haven’t self-assigned it, if this is something that should be worked on now, I’d be happy to take it on. Thanks.
Thank you, great observation. I put together a quick fix, let me know if you think this solves it: https://github.com/coracle-social/welshman/commit/2020276bf60a110aee26850a3d5d7110353c259e
Thank you for the quick fix, I went through the changes and verified the behaviour.
This resolves the issue from my side, closing this.