mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-21 00:24:32 +01:00
fixed bug in qrcodelink endpoint
* generate QR code with version 10 and the highest error correction level. see #190
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user