mirror of
https://github.com/mikedilger/chorus.git
synced 2026-01-03 06:15:33 +00:00
Fix: sense of redacted handling
This commit is contained in:
parent
db8b29dfc4
commit
fb1bf64062
@ -209,13 +209,13 @@ impl WebSocketService {
|
||||
if completes {
|
||||
// Closed
|
||||
let reply = if redacted {
|
||||
NostrReply::Closed(subid, NostrReplyPrefix::None, "".to_owned())
|
||||
} else {
|
||||
NostrReply::Closed(
|
||||
subid,
|
||||
NostrReplyPrefix::Redacted,
|
||||
"Some matching events could not be served to you.".to_owned(),
|
||||
)
|
||||
} else {
|
||||
NostrReply::Closed(subid, NostrReplyPrefix::None, "".to_owned())
|
||||
};
|
||||
self.send(Message::text(reply.as_json())).await?;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user