Deletes don't get broadcasted #1
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?
This is a bug in nostrlib's khatru. It'll require a PR to upstream to add a hook or broadcast them.
Hi @hodlbod,
Thank you for the explanation.
After tracing the delete flow in both zooid and khatru, I agree that the main issue is at the khatru boundary. Zooid only receives the
DeleteEvent(id)callback, which doesn't provide enough context (especially the full kind 5 deletion event) to reliably broadcast the deletion to relays.I’d like to take ownership of this issue and fix it properly.
Proposed Approach:
OnDeleteApplied(ctx, deleteEvent, deletedTargetEvent)— that gets called after a target event is successfully deleted.Relay.BroadcastEventto properly fan out the kind 5 deletion event.Before I start working on the upstream PR in khatru, could you please confirm:
I'm ready to begin with the khatru patch once you give the go-ahead.
Looking forward to your thoughts.
I just updated nostrlib from upstream, it looks like fiatjaf may have done some work to fix this. Can you first validate that the issue still exists? If not, we can close this.
Yeah, @hodlbod, it seems like this issue has been resolved.
Awesome, thanks for double checking!