From 6fa98bd4da4da341d48bf95012ad480354ecf32e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 1 Oct 2026 17:18:19 -0700 Subject: Warm recipient portraits from Send suggestions before selection --- src/app.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index b2584c2..d3222f9 100644 --- a/src/app.js +++ b/src/app.js @@ -5012,6 +5012,9 @@ function parkSendField() { // input for a fresh node, which resets Android's keyboard session and cancels // key auto-repeat — holding backspace deleted one character per press. const sendSearcher = makeSearcher((q, rows) => { + // Suggestions already know the person's picture. Share that profile and + // warm the large portrait before a selection can paint the Send form. + for (const cand of rows || []) featureHook('warmRecipient', cand); sendSearch.rows = rows; if (sendSearch.sync) sendSearch.sync(); else render(); if (rows && rows.length) setTimeout(parkSendField, 50); @@ -5091,6 +5094,7 @@ function recipientRow(s, r, i) { }, }); const pickRecipient = (cand) => { + featureHook('warmRecipient', cand); const v = cand.address || npubOf(cand.pk); // State first: clear() re-renders, and that render must already see the // picked address — the old order repainted the half-typed query and left -- cgit v1.2.3