Fix sign and store to take events by reference

This commit is contained in:
Jon Staab
2025-10-23 05:55:05 -07:00
parent b68701ae59
commit b04c8e99cb
5 changed files with 22 additions and 18 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ func (g *GroupStore) AddMember(h string, pubkey nostr.PubKey) error {
},
}
return g.Events.SignAndStoreEvent(event, true)
return g.Events.SignAndStoreEvent(&event, true)
}
func (g *GroupStore) RemoveMember(h string, pubkey nostr.PubKey) error {
@@ -57,7 +57,7 @@ func (g *GroupStore) RemoveMember(h string, pubkey nostr.PubKey) error {
},
}
return g.Events.SignAndStoreEvent(event, true)
return g.Events.SignAndStoreEvent(&event, true)
}
func (g *GroupStore) SetMetadataFromEvent(event nostr.Event) error {
@@ -77,7 +77,7 @@ func (g *GroupStore) SetMetadataFromEvent(event nostr.Event) error {
Tags: tags,
}
return g.Events.SignAndStoreEvent(metadataEvent, true)
return g.Events.SignAndStoreEvent(&metadataEvent, true)
}
func (g *GroupStore) DeleteGroup(h string) {