Skip to content

Commit

Permalink
nip29: NewGroup() doesn't set timestamps to now.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Jan 5, 2024
1 parent 48db1df commit 8da32e6
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions nip29/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 8da32e6

Please sign in to comment.