aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/nostrlogin.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-27 23:11:01 -0700
committerAdam Soltys <[email protected]>2026-08-27 23:11:01 -0700
commit3a0f02b7624d72e73a4f92b635f5335ffd29f972 (patch)
tree436fa37b5cee769507b703de2352c52c834472fe /src/features/nostrlogin.js
parentff9b87bb48130f638249412848c69b2d4a2a770a (diff)
downloadcoinosv3-3a0f02b7624d72e73a4f92b635f5335ffd29f972.tar.gz
coinosv3-3a0f02b7624d72e73a4f92b635f5335ffd29f972.zip
The face arrives with the key: sign-in warms the identity's profile and preloads the avatar bytes in parallel with the seed work, so the home screen's first paint already wears the picture instead of a blank circle
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi
Diffstat (limited to 'src/features/nostrlogin.js')
-rw-r--r--src/features/nostrlogin.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/features/nostrlogin.js b/src/features/nostrlogin.js
index a084dd1..687a389 100644
--- a/src/features/nostrlogin.js
+++ b/src/features/nostrlogin.js
@@ -85,6 +85,9 @@ export function nostrLoginFeature(ctx) {
let signer;
try {
signer = await makeSigner();
+ // warm the identity's profile + avatar in parallel with the seed work,
+ // so the home screen's first paint already has the picture
+ ctx.hook('warmProfile', signer.pubkey);
const res = await walletForSigner(signer);
if (res.mode === 'new') {
// No wallet on this identity yet — make one and walk straight in.