nip77: fix envelope parsing.

This commit is contained in:
fiatjaf 2025-04-08 12:22:17 -03:00
parent dad99b226c
commit 5e650f27ff

View File

@ -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 {