diff --git a/model/profile.go b/model/profile.go index 2dd0f7f..881e449 100644 --- a/model/profile.go +++ b/model/profile.go @@ -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()