Generate group events

This commit is contained in:
Jon Staab
2025-10-24 11:59:10 -07:00
parent 21ee8c7361
commit 45f8796e64
2 changed files with 36 additions and 1 deletions
+2
View File
@@ -97,6 +97,7 @@ func (g *GroupStore) GetAdmins(h string) []nostr.PubKey {
func (g *GroupStore) GenerateAdminsEvent(h string) nostr.Event {
tags := nostr.Tags{
nostr.Tag{"-"},
nostr.Tag{"d", h},
}
for _, pubkey := range g.GetAdmins(h) {
@@ -192,6 +193,7 @@ func (g *GroupStore) GetMembers(h string) []nostr.PubKey {
func (g *GroupStore) GenerateMembersEvent(h string) nostr.Event {
tags := nostr.Tags{
nostr.Tag{"-"},
nostr.Tag{"d", h},
}
for _, pubkey := range g.GetMembers(h) {