Merge pull request 'Save Group Name from Invite' (#358) from groupwiring into master
Reviewed-on: #358
This commit is contained in:
commit
954e818aa6
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue