Browse Source

grou[ invite also gets random local id

pull/210/head
Dan Ballard 10 months ago
parent
commit
4d11547393
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      model/profile.go

+ 1
- 0
model/profile.go View File

@@ -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()

Loading…
Cancel
Save