From b8a3904c373dc3b35d6808adf3a6148b376b3091 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 2 Oct 2018 22:46:00 -0700 Subject: [PATCH] Minor fix to export --- peer/cwtch_peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer/cwtch_peer.go b/peer/cwtch_peer.go index 40fc518..48bcdaa 100644 --- a/peer/cwtch_peer.go +++ b/peer/cwtch_peer.go @@ -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