fixed bug in qrcodelink endpoint

* generate QR code with version 10 and the highest error correction
  level.

see #190
This commit is contained in:
Bernhard B
2021-12-31 21:12:35 +01:00
parent 2e6e45b18a
commit 259e1ece8e

View File

@@ -751,7 +751,7 @@ func (s *SignalClient) GetQrCodeLink(deviceName string) ([]byte, error) {
return []byte{}, errors.New("Couldn't create QR code: " + err.Error())
}
q, err := qrcode.New(string(tsdeviceLink), qrcode.Medium)
q, err := qrcode.NewWithForcedVersion(string(tsdeviceLink), 10, qrcode.Highest)
if err != nil {
return []byte{}, errors.New("Couldn't create QR code: " + err.Error())
}