mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-19 21:32:39 +02:00
nip77: fix envelope parsing.
This commit is contained in:
parent
dad99b226c
commit
5e650f27ff
@ -17,7 +17,7 @@ func ParseNegMessage(message string) nostr.Envelope {
|
|||||||
if firstComma == -1 {
|
if firstComma == -1 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
label := message[0:firstComma]
|
label := message[2 : firstComma-1]
|
||||||
|
|
||||||
var v nostr.Envelope
|
var v nostr.Envelope
|
||||||
switch label {
|
switch label {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user