diff --git a/model/profile.go b/model/profile.go index b326989..8edd590 100644 --- a/model/profile.go +++ b/model/profile.go @@ -2,6 +2,7 @@ package model import ( "crypto/rand" + "cwtch.im/cwtch/model/attr" "cwtch.im/cwtch/protocol/groups" "encoding/base32" "encoding/hex" @@ -380,6 +381,7 @@ func (p *Profile) ProcessInvite(invite string) (string, error) { group.GroupServer = gci.ServerHost group.Accepted = false group.Attributes = make(map[string]string) + group.Attributes[attr.GetLocalScope("name")] = gci.GroupName p.AddGroup(group) return gci.GroupID, nil }