Add support for publishing kind 39004 livekit particpant list.

This commit is contained in:
mplorentz
2026-03-12 16:07:08 -04:00
committed by Jon Staab
parent e079026f6c
commit dc0c3e1477
6 changed files with 187 additions and 15 deletions
+1 -9
View File
@@ -11,7 +11,7 @@ import (
func GetGroupIDFromEvent(event nostr.Event) string {
var tagName string
if slices.Contains(nip29.MetadataEventKinds, event.Kind) {
if slices.Contains(nip29.MetadataEventKinds, event.Kind) || event.Kind == nostr.KindSimpleGroupLiveKitParticipants {
tagName = "d"
} else {
tagName = "h"
@@ -322,14 +322,6 @@ func (g *GroupStore) CheckWrite(event nostr.Event) string {
}
}
if HasTag(meta.Tags, "no-text") &&
!slices.Contains(nip29.ModerationEventKinds, event.Kind) &&
event.Kind != nostr.KindSimpleGroupJoinRequest &&
event.Kind != nostr.KindSimpleGroupLeaveRequest &&
event.Kind != ROOM_PRESENCE {
return "blocked: this group does not allow text events"
}
if HasTag(meta.Tags, "closed") && !g.HasAccess(h, event.PubKey) {
return "restricted: you are not a member of that group"
}