aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/messages.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-16 21:27:00 -0700
committerAdam Soltys <[email protected]>2026-09-16 21:27:00 -0700
commit9360ca6806332a9c7e3a2e11f0b973511493c192 (patch)
treed31bf21b6ebc14e588467e9a2d59ed11e4c615c7 /src/features/messages.js
parent5484c5effa273e96bca69396ead175515aa06352 (diff)
downloadcoinosv3-9360ca6806332a9c7e3a2e11f0b973511493c192.tar.gz
coinosv3-9360ca6806332a9c7e3a2e11f0b973511493c192.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_01JuwQqNWtDJcxPWtEm9134z
Diffstat (limited to 'src/features/messages.js')
-rw-r--r--src/features/messages.js4
1 files changed, 2 insertions, 2 deletions
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')),