mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-28 17:53:32 +02:00
nip29: fix roles event kind.
This commit is contained in:
parent
456f8687ed
commit
b62678e606
@ -199,7 +199,7 @@ func (group Group) ToMembersEvent() *nostr.Event {
|
|||||||
|
|
||||||
func (group Group) ToRolesEvent() *nostr.Event {
|
func (group Group) ToRolesEvent() *nostr.Event {
|
||||||
evt := &nostr.Event{
|
evt := &nostr.Event{
|
||||||
Kind: nostr.KindSimpleGroupMembers,
|
Kind: nostr.KindSimpleGroupRoles,
|
||||||
CreatedAt: group.LastMembersUpdate,
|
CreatedAt: group.LastMembersUpdate,
|
||||||
Tags: make(nostr.Tags, 1, 1+len(group.Members)),
|
Tags: make(nostr.Tags, 1, 1+len(group.Members)),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user