do not error with "mute" when there are ephemeral handlers.

This commit is contained in:
fiatjaf
2025-05-12 05:15:24 -03:00
parent 4befaa0129
commit bbffe45824

View File

@@ -230,7 +230,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
// the number of notified listeners matters in ephemeral events
if env.Event.Kind.IsEphemeral() {
if n == 0 {
if n == 0 && nil == rl.OnEphemeralEvent {
ok = false
reason = "mute: no one was listening for this"
} else {