mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-05-09 10:10:17 +02: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
|
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,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user