khatru: OnEventDeleted hook.

This commit is contained in:
fiatjaf
2026-02-14 09:33:58 -03:00
parent 7a4b71b39b
commit 65ef1c50a7
3 changed files with 28 additions and 4 deletions
+3
View File
@@ -78,6 +78,9 @@ func (rl *Relay) handleDeleteRequest(ctx context.Context, evt nostr.Event) error
}
haveDeletedSomething = true
if rl.OnEventDeleted != nil {
rl.OnEventDeleted(ctx, target)
}
return nil
})
} else {