Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

Commit 6c89754

Browse files
committed
fix(lightning): show pending ln txs in activity list
1 parent 513a75a commit 6c89754

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/store/utils/lightning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export const syncLightningTxsWithActivityList = async (): Promise<
331331
const sentTxs = await getSentLightningPayments();
332332
for (const tx of sentTxs) {
333333
const sats = tx.amount_sat;
334-
if (!sats || tx.state !== 'successful') {
334+
if (!sats || tx.state === 'failed') {
335335
continue;
336336
}
337337

src/utils/lightning/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,8 @@ export const payLightningInvoice = async (
15951595
timeout: 60000,
15961596
});
15971597
if (payResponse.isErr()) {
1598+
//On occasion a payment can time out but still be pending, so we need to sync with react-native-ldk's stored pending payments
1599+
await syncLightningTxsWithActivityList();
15981600
return err(payResponse.error.message);
15991601
}
16001602

0 commit comments

Comments
 (0)