From d646ff84a103f0a74bf52e698f9230ab830db467 Mon Sep 17 00:00:00 2001 From: pradip-1111 Date: Mon, 19 Jan 2026 21:31:44 +0530 Subject: [PATCH 1/2] feat: add support for route hints from private channels when creating invoices --- src/app/screens/ReceiveInvoice/index.tsx | 30 ++++++++++++++++++- src/common/lib/api.ts | 12 ++++++-- .../actions/ln/makeInvoice.ts | 1 + .../connectors/connector.interface.ts | 1 + .../background-script/connectors/lnc.ts | 1 + .../background-script/connectors/lnd.ts | 1 + src/types.ts | 7 ++++- 7 files changed, 49 insertions(+), 4 deletions(-) diff --git a/src/app/screens/ReceiveInvoice/index.tsx b/src/app/screens/ReceiveInvoice/index.tsx index 97ec9e456e..811fa15816 100644 --- a/src/app/screens/ReceiveInvoice/index.tsx +++ b/src/app/screens/ReceiveInvoice/index.tsx @@ -40,6 +40,7 @@ function ReceiveInvoice() { amount: "0", description: "", expiration: "", + includePrivateChannels: false, }); const [loadingInvoice, setLoadingInvoice] = useState(false); const [invoice, setInvoice] = useState<{ @@ -78,7 +79,11 @@ function ReceiveInvoice() { ) { setFormData({ ...formData, - [event.target.name]: event.target.value.trim(), + ...formData, + [event.target.name]: + event.target.type === "checkbox" + ? (event.target as HTMLInputElement).checked + : event.target.value.trim(), }); } @@ -109,6 +114,7 @@ function ReceiveInvoice() { amount: "0", description: "", expiration: "", + includePrivateChannels: false, }); setPaid(false); setPollingForPayment(false); @@ -121,6 +127,7 @@ function ReceiveInvoice() { const response = await api.makeInvoice({ amount: formData.amount, memo: formData.description, + includePrivateChannels: formData.includePrivateChannels, }); setInvoice(response); checkPayment(response.rHash); @@ -294,6 +301,27 @@ function ReceiveInvoice() { onChange={handleChange} /> +
+
+ + +
+