nip29: fix "livekit" tag parsing.
This commit is contained in:
+2
-2
@@ -284,6 +284,8 @@ func (group *Group) MergeInMetadataEvent(evt *nostr.Event) error {
|
|||||||
group.Hidden = true
|
group.Hidden = true
|
||||||
case "no-text":
|
case "no-text":
|
||||||
group.NoText = true
|
group.NoText = true
|
||||||
|
case "livekit":
|
||||||
|
group.Livekit = true
|
||||||
default:
|
default:
|
||||||
if len(tag) >= 2 {
|
if len(tag) >= 2 {
|
||||||
switch tag[0] {
|
switch tag[0] {
|
||||||
@@ -293,8 +295,6 @@ func (group *Group) MergeInMetadataEvent(evt *nostr.Event) error {
|
|||||||
group.About = tag[1]
|
group.About = tag[1]
|
||||||
case "picture":
|
case "picture":
|
||||||
group.Picture = tag[1]
|
group.Picture = tag[1]
|
||||||
case "livekit":
|
|
||||||
group.Livekit = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user