diff options
| author | Adam Soltys <[email protected]> | 2026-10-01 17:18:19 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-01 17:18:19 -0700 |
| commit | 6fa98bd4da4da341d48bf95012ad480354ecf32e (patch) | |
| tree | b0f80eccd697442ec8fde57dce35654968538b48 /src/app.js | |
| parent | 5c661b68c61d53a4684e47c2f306ce43cc76c1c0 (diff) | |
| download | coinosv3-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.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
