Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: made the QR code scannable for even shorter lightning addresses #2785

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

Rithvik-padma
Copy link
Contributor

Describe the changes you have made in this PR

The QR code in the receive screen is not scannable when the lightning address name is <=3 characters. The issue might be due to the addition of avatar on the QR code. Few changes to fix this issue might be - increase the QR size, decrease the avatar size, Increase the error correction.
I increased the EC level as this seemed to be the best approach for it.

Link this PR to an issue

Fixes #2774

Type of change

  • fix: Bug fix (non-breaking change which fixes an issue)

Screenshots of the changes [optional]

These are few lightning addresses which can be used to test whether the QR is working after this change(hardcoded).

How has this been tested?

Hardcoded the lightning address and checked whether it is working for lightning addresses with less than three characters.

Checklist

  • Self-review of changed code
  • Manual testing

@Rithvik-padma
Copy link
Contributor Author

@rolnz can you please review this PR.
Thanks!

Copy link
Contributor

@rolznz rolznz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@rolznz rolznz merged commit 0104501 into getAlby:master Oct 2, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] QR code is not scannable
2 participants