Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…mobile into nostr-nip07
  • Loading branch information
sarthak13gupta committed Jul 9, 2023
2 parents 2888051 + 9daada9 commit 03d6559
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bloc/podcast_payments/podcast_payments_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class PodcastPaymentsBloc with AsyncActionsHandler {
tlv["action"] = boost ? "boost" : "stream";
tlv["time"] = _formatDuration(position.position);
tlv["feedID"] = _getPodcastIndexID(episode);
tlv["itemID"] = episode.guid;
tlv["episode_guid"] = episode.guid;
tlv["app_name"] = "Breez";
tlv["value_msat_total"] = msatTotal;
tlv["sender_name"] = senderName;
Expand Down
1 change: 0 additions & 1 deletion lib/utils/node_id.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:convert/convert.dart';
import 'package:hex/hex.dart';

const NODE_URI_SEPARATOR = "@";
Expand Down
6 changes: 5 additions & 1 deletion lib/widgets/enter_payment_info_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ class EnterPaymentInfoDialogState extends State<EnterPaymentInfoDialog> {
validator: (value) {
if (parseNodeId(value) == null &&
_decodeInvoice(value) == null &&
!isLightningAddress(value)) {
!isLightningAddress(value) &&
!isLNURL(value)) {
return texts.payment_info_dialog_error;
}
return null;
Expand Down Expand Up @@ -190,6 +191,9 @@ class EnterPaymentInfoDialogState extends State<EnterPaymentInfoDialog> {
widget.invoiceBloc.decodeInvoiceSink
.add(_paymentInfoController.text);
}
if (isLNURL(_paymentInfoController.text)) {
widget.lnurlBloc.lnurlInputSink.add(_paymentInfoController.text);
}
}
}),
child: Text(
Expand Down

0 comments on commit 03d6559

Please sign in to comment.