forked from cwtch.im/cwtch
Minor fix to export
This commit is contained in:
parent
85885f183b
commit
b8a3904c37
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue