"nothing to delete" is not a real error.

This commit is contained in:
fiatjaf
2026-05-15 15:04:20 -03:00
parent b3cef7b425
commit 8634f0f7d5
+3
View File
@@ -227,6 +227,9 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
if writeErr == nil {
// this always returns "blocked: " whenever it returns an error
writeErr = rl.handleDeleteRequest(ctx, env.Event)
if writeErr == ErrNothingToDelete {
writeErr = nil
}
}
} else if env.Event.Kind.IsEphemeral() {
// this will also always return a prefixed reason