-
Notifications
You must be signed in to change notification settings - Fork 2
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
Display LN Address on "Receive via Lightning Address" page #313
base: savage-lnurl-username
Are you sure you want to change the base?
Conversation
1b88833
to
4291ecd
Compare
4ce788b
to
da447c0
Compare
...eive_payment/widgets/destination_widget/widgets/change_ln_address_username_bottom_sheet.dart
Outdated
Show resolved
Hide resolved
8321ee8
to
f1c6095
Compare
1149573
to
4f6b3e6
Compare
bf79d65
to
c5c4258
Compare
@erdemyerebasmaz I haven't reviewed the code carefully, so maybe this is expected, but when testing, I was able to successfully receive to a new LN address after customizing it, but when coming back to the "Receive via Lightning Address" screen, the original default address gets shown again. |
@danielgranhao That's unexpected. I suspect its because we're not updating the value on secure storage, will look into it. |
bbb5cfe
to
d830e02
Compare
@danielgranhao This should be fixed with d830e02 Testing. This issue happened because we were re-registering(maybe I'll review the |
4f6b3e6
to
7b86b7a
Compare
d830e02
to
a1da209
Compare
- Check if lnAddress is not empty instead of relying on isLnAddress param - Display LN Address below action buttons - Set Copy actions value to LN Address - Open options menu on clicking LN Address - Open a bottom sheet to customize LN Address on clicking customize option Misc: - Rename DestinationActions's filename
Split WebhookCubit into two services, one for Webhook related logic one for LNURL service related logic. Other changes on ChangeLnAddressUsernameBottomSheet - fix: Use keyboard for email address - fix: remove input formatter - fix: trim the username value
Add toString to WebhookState
and show flushbars. Remove loader.
misc: change ordering of params of emitted states for readability.
a1da209
to
3e0b7a6
Compare
this.lnurlPayError, | ||
this.lnurlPayErrorTitle, | ||
this.isLoading = false, | ||
}); | ||
|
||
WebhookState copyWith({ | ||
String? lnurlPayUrl, | ||
String? lnAddress, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add lnAddressUsername
in the copyWith()
and toString()
also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re: #313 (comment)
Moved lnAddressUsername
to secure storage to avoid persistence issues between app updates. 7119707
Closes #319
With this PR, users LN Address is now displayed on
Receive via Lightning Address
page and it can be customized throughCustomize Address
option on it's dropdown menu.Both LNURLp & LN Address is now stored & accessible via
WebhookState
.Share
button.Copy
button.