Skip to content

Commit

Permalink
display invite-URL in qr subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Feb 4, 2024
1 parent df8fa9e commit b3a8027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion botcli/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ 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(qrdata)
fragment := strings.Replace(strings.SplitN(qrdata, ":", 2)[1], "#", "&", 1)
fmt.Println("https://i.delta.chat/#%v", fragment)

Check failure on line 241 in botcli/cmd.go

View workflow job for this annotation

GitHub Actions / build

printf: fmt.Println call has possible formatting directive %v (govet)
} else {
cli.Logger.Error("account not configured")
}
Expand Down

0 comments on commit b3a8027

Please sign in to comment.