grou[ invite also gets random local id

This commit is contained in:
Dan Ballard 2019-02-04 11:53:42 -08:00
父節點 742d36734b
當前提交 4d11547393
共有 1 個文件被更改,包括 1 次插入0 次删除

查看文件

@ -277,6 +277,7 @@ func (p *Profile) GetGroupByGroupID(groupID string) (g *Group) {
func (p *Profile) ProcessInvite(gci *protocol.GroupChatInvite, peerHostname string) {
group := new(Group)
group.GroupID = gci.GetGroupName()
group.LocalID = generateRandomID()
group.SignedGroupID = gci.GetSignedGroupId()
copy(group.GroupKey[:], gci.GetGroupSharedKey()[:])
group.GroupServer = gci.GetServerHost()