mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-19 08:14:20 +01:00
nostr: fix parsing of OK events
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -107,7 +107,7 @@ impl<'a> RelayMessage<'a> {
|
||||
|
||||
// OK (NIP-20)
|
||||
// Relay response format: ["OK",<event_id>, <true|false>, <message>]
|
||||
if &msg[0..=4] == "[\"OK\"," {
|
||||
if &msg[0..=5] == "[\"OK\"," {
|
||||
// TODO: fix this
|
||||
let event_id = &msg[7..71];
|
||||
let booly = &msg[73..77];
|
||||
|
||||
Reference in New Issue
Block a user