Skip to content

Commit

Permalink
fix: update to new QR API
Browse files Browse the repository at this point in the history
now QR data returned by core is already an invite link
  • Loading branch information
adbenitez committed Jan 9, 2025
1 parent 4b9323a commit 7646f66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
toolchain go1.21.0

require (
github.com/deltachat-bot/deltabot-cli-go v0.6.1-0.20240206182306-1262a8de3fc0
github.com/deltachat-bot/deltabot-cli-go v0.6.1-0.20250108161714-8d494ab3e1f8
github.com/deltachat/deltachat-rpc-client-go v1.134.0
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
github.com/spf13/cobra v1.8.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/deltachat-bot/deltabot-cli-go v0.6.1-0.20240206182306-1262a8de3fc0 h1:tAolhC8y40l8Zn+b/KdH4XsuTj4MH5/j7hkJrZUI2Mw=
github.com/deltachat-bot/deltabot-cli-go v0.6.1-0.20240206182306-1262a8de3fc0/go.mod h1:Va1UY+jfELQZvB3mNVpW8ACdECDJbeWve7SynvtgQ5c=
github.com/deltachat-bot/deltabot-cli-go v0.6.1-0.20250108161714-8d494ab3e1f8 h1:LpsL7lE2xNf9PokdEycrlprTXNt+4nDDmg+cqaoNwmY=
github.com/deltachat-bot/deltabot-cli-go v0.6.1-0.20250108161714-8d494ab3e1f8/go.mod h1:Va1UY+jfELQZvB3mNVpW8ACdECDJbeWve7SynvtgQ5c=
github.com/deltachat/deltachat-rpc-client-go v1.134.0 h1:rpGa/kL417ufyxsivT/G751aZifh8bpiPTIsXMzdDAI=
github.com/deltachat/deltachat-rpc-client-go v1.134.0/go.mod h1:Ctd0M0o87y2B0QSOn8QN6IMDWjHD7XzDKsjNMYwP208=
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
Expand Down
2 changes: 1 addition & 1 deletion invitebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func sendInviteQr(rpc *deltachat.Rpc, accId deltachat.AccountId, chatId deltacha
logger.Error(err)
return
}
_, err = rpc.SendMsg(accId, chatId, deltachat.MsgData{Text: botcli.GenerateInviteLink(qrdata), File: path})
_, err = rpc.SendMsg(accId, chatId, deltachat.MsgData{Text: qrdata, File: path})
if err != nil {
logger.Error(err)
}
Expand Down

0 comments on commit 7646f66

Please sign in to comment.