diff --git a/package.json b/package.json index 2eef8234..d4204bda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "imwald", - "version": "23.15.1", + "version": "23.16.0", "description": "Imwald — a user-friendly Nostr client focused on relay feed browsing, publications, and relay discovery", "private": true, "type": "module", diff --git a/src/components/PaytoDialog/index.tsx b/src/components/PaytoDialog/index.tsx index 7f992d25..15d492f3 100644 --- a/src/components/PaytoDialog/index.tsx +++ b/src/components/PaytoDialog/index.tsx @@ -36,6 +36,7 @@ import { cn } from '@/lib/utils' import { useNostr } from '@/providers/NostrProvider' import { mergePostPaymentContext, type PostPaymentContext } from '@/lib/post-payment-context' import { NostrEvent } from 'nostr-tools' +import QrCode from '@/components/QrCode' import LightningInvoiceSection from './LightningInvoiceSection' export default function PaytoDialog({ @@ -170,6 +171,9 @@ export default function PaytoDialog({ [isLightning, type, authority] ) + /** Wallet deep link (`bitcoin:…`) or funding page URL — not the payto:// URI. */ + const qrPayload = walletOpenUri ?? authority + const showPrimaryOpen = isLikelyMobileWalletUserAgent() && !!walletOpenUri const handleOpenWallet = () => { @@ -229,6 +233,18 @@ export default function PaytoDialog({

{authority}

+
+
+ +
+

+ {t('Scan to pay with your wallet')} +

+
{showPrimaryOpen && walletOpenUri ? (