Add support for publishing kind 39004 livekit particpant list.
This commit is contained in:
+1
-9
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user