From 8da32e6dfc2d617309c7c1a418cb9f8f22b9b57c Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 4 Jan 2024 21:46:10 -0300 Subject: [PATCH] nip29: NewGroup() doesn't set timestamps to now. --- nip29/group.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/nip29/group.go b/nip29/group.go index 0287363..294d151 100644 --- a/nip29/group.go +++ b/nip29/group.go @@ -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), } }