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
}
func NewGroup(id string) *Group {
now := nostr.Now()
return &Group{
ID: id,
Name: id,
Members: make(map[string]*Role),
LastMetadataUpdate: now,
LastAdminsUpdate: now,
LastMembersUpdate: now,
func NewGroup(id string) Group {
return Group{
ID: id,
Name: id,
Members: make(map[string]*Role),
}
}