aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-01 17:18:19 -0700
committerAdam Soltys <[email protected]>2026-10-01 17:18:19 -0700
commit6fa98bd4da4da341d48bf95012ad480354ecf32e (patch)
treeb0f80eccd697442ec8fde57dce35654968538b48 /src/app.js
parent5c661b68c61d53a4684e47c2f306ce43cc76c1c0 (diff)
downloadcoinosv3-6fa98bd4da4da341d48bf95012ad480354ecf32e.tar.gz
coinosv3-6fa98bd4da4da341d48bf95012ad480354ecf32e.zip
Warm recipient portraits from Send suggestions before selection
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 4 insertions, 0 deletions
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