Minor fix to export

This commit is contained in:
Sarah Jamie Lewis 2018-10-02 22:46:00 -07:00
parent 85885f183b
commit b8a3904c37
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func (cp *cwtchPeer) ImportGroup(exportedInvite string) (groupID string, err err
func (cp *cwtchPeer) ExportGroup(groupID string) (string, error) {
group := cp.Profile.GetGroupByGroupID(groupID)
if group != nil {
invite, err := group.Invite([]byte{})
invite, err := group.Invite(group.GetInitialMessage())
if err == nil {
exportedInvite := "torv2" + cp.Profile.Onion + base64.StdEncoding.EncodeToString(cp.Profile.Ed25519PublicKey) + base64.StdEncoding.EncodeToString(invite)
return exportedInvite, err