khatru: improve ephemeral ok message when handled internally.

This commit is contained in:
fiatjaf
2025-07-19 11:51:44 -03:00
parent 9f0376692b
commit 68b0caf2ab

View File

@@ -229,7 +229,11 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
ok = false ok = false
reason = "mute: no one was listening for this" reason = "mute: no one was listening for this"
} else { } else {
reason = "broadcasted to " + strconv.Itoa(n) + " listeners" if nil == rl.OnEphemeralEvent {
reason = "broadcasted to " + strconv.Itoa(n)
} else {
reason += "handled internally"
}
} }
} }
} }