mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
nip29: NewGroup() doesn't set timestamps to now.
This commit is contained in:
parent
48db1df66c
commit
8da32e6dfc
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user