From 9360ca6806332a9c7e3a2e11f0b973511493c192 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 16 Sep 2026 21:27:00 -0700 Subject: Pay from a profile opens the Send form, not a lingering payment detail. A tapped history row claims the whole tab area whichever tab is picked, so jumping to ui.tab = 'send' from a profile's Pay button (or a zap's form fallback) with a renewal's detail still open showed that detail instead of the form. showSend() closes any open detail first; the three feature paths that jump to Send use it. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01JuwQqNWtDJcxPWtEm9134z --- src/features/messages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/features/messages.js') diff --git a/src/features/messages.js b/src/features/messages.js index 6314a58..60e87f8 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -4206,7 +4206,7 @@ export function messagesFeature(ctx) { settleZap(ev.id, false); ui.profilePk = null; ui.chatOpen = false; - ui.tab = 'send'; + ctx.showSend(); render(); if (!hook('zapNpub', pk, npubStr, ev.id)) hook('lnZapNpub', pk, npubStr, ev.id); } @@ -5233,7 +5233,7 @@ export function messagesFeature(ctx) { ui.noteThread = null; ui.userSearch = null; ui.chatOpen = false; - ui.tab = 'send'; + ctx.showSend(); // and never a lingering payment detail render(); hook('matchSendText', npubStr); } }, t('profPay')), -- cgit v1.2.3