nip29: NewGroup() doesn't set timestamps to now.

This commit is contained in:
fiatjaf 2024-01-04 21:46:10 -03:00
parent 48db1df66c
commit 8da32e6dfc
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -20,15 +20,11 @@ type Group struct {
LastMembersUpdate nostr.Timestamp LastMembersUpdate nostr.Timestamp
} }
func NewGroup(id string) *Group { func NewGroup(id string) Group {
now := nostr.Now() return Group{
return &Group{ ID: id,
ID: id, Name: id,
Name: id, Members: make(map[string]*Role),
Members: make(map[string]*Role),
LastMetadataUpdate: now,
LastAdminsUpdate: now,
LastMembersUpdate: now,
} }
} }