diff --git a/botcli/cmd.go b/botcli/cmd.go index cbd8c5e..71bad9a 100644 --- a/botcli/cmd.go +++ b/botcli/cmd.go @@ -237,7 +237,7 @@ func qrForAcc(cli *BotCli, bot *deltachat.Bot, cmd *cobra.Command, args []string fmt.Println("Scan this QR to verify", addr) invert, _ := cmd.Flags().GetBool("invert") printQr(qrdata, invert) - fmt.Println(GenerateInviteLink(qrdata)) + fmt.Println(qrdata) } else { cli.Logger.Error("account not configured") } @@ -306,7 +306,7 @@ func adminForAcc(cli *BotCli, bot *deltachat.Bot, cmd *cobra.Command, args []str fmt.Println("Scan this QR to become bot administrator") invert, _ := cmd.Flags().GetBool("invert") printQr(qrdata, invert) - fmt.Println(GenerateInviteLink(qrdata)) + fmt.Println(qrdata) } func listCallback(cli *BotCli, bot *deltachat.Bot, cmd *cobra.Command, args []string) { diff --git a/botcli/util.go b/botcli/util.go index a79c193..fdac4b5 100644 --- a/botcli/util.go +++ b/botcli/util.go @@ -8,12 +8,6 @@ import ( "github.com/mdp/qrterminal/v3" ) -// Generate an invite link (https://i.delta.chat) for the given invitation-QR data -func GenerateInviteLink(qrdata string) string { - fragment := strings.Replace(strings.SplitN(qrdata, ":", 2)[1], "#", "&", 1) - return "https://i.delta.chat/#" + fragment -} - func getDefaultAppDir(appName string) string { cfgDir, _ := os.UserConfigDir() return filepath.Join(cfgDir, appName)