From 3da7f9d52dee6a535190cd5e0db152a3689c7e8e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 27 Sep 2026 08:29:01 -0700 Subject: Accounts: tapping an identity signs in as it and opens its profile; the padlock moves from the header to this page. The identity chip used to put the npub in the URL and leave the list on screen (the profile only paints over the wallet screen). Lock/Unlock now sits with the other device-wide actions (log out, clear); the padlock tests reach it through the Accounts page and lose their stale "Wallets" button. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D --- src/features/messages.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/features') diff --git a/src/features/messages.js b/src/features/messages.js index 06cb6dd..59fb0a5 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -8489,11 +8489,13 @@ export function messagesFeature(ctx) { fieldWhen: { lud16: follows('lud16'), nip05: follows('nip05') }, }).catch(() => {}); }, - profileChip(pk, size) { + // opens the profile, unless the caller has a step to take first (the + // Accounts page switches to that identity before showing its profile) + profileChip(pk, size, onOpen) { const big = size === 'lg'; return h('span', { class: 'zap-chip' + (big ? ' lg' : ''), - onClick: (e) => { e.stopPropagation(); openProfile(pk); }, + onClick: (e) => { e.stopPropagation(); if (onOpen) onOpen(); else openProfile(pk); }, }, avatar(pk, 'chat-avatar ' + (big ? 'chip-lg' : 'mini'), false), h('span', { class: big ? '' : 'small' }, displayName(pk))); }, @@ -8501,6 +8503,7 @@ export function messagesFeature(ctx) { // the same start, but only the follows of an identity that follows // nobody yet — an established nostr user keeps their own list. identitySignedInNew() { setTimeout(() => seedNewIdentity({ onlyIfNoFollows: true }), 0); return true; }, + openProfile(pk) { openProfile(pk); return true; }, init() { const session = ++feedWarmSession; // this wallet's cached faces, from its own namespace — the keys are -- cgit v1.2.3