From d61b2be95db793d3d8d43b2158f5d514207cab09 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 10 Sep 2026 13:49:52 -0700 Subject: Profile page gets "Sign into another account" beside Log out. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The additive sign-in door lived only at the foot of the Accounts screen; the profile page — where people actually go looking for a way out of the current identity — offered just Log out. Now it carries the same button, via a shared signInAnother action on the feature ctx (clears the profile/chat state so the unlock screen's Back lands on the wallet, and the new identity doesn't open onto the old identity's profile). Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01URmfo8VimCNkw6Y7JndYrv --- src/features/messages.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/features') diff --git a/src/features/messages.js b/src/features/messages.js index 1eb3e41..e85d5d7 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -2512,6 +2512,15 @@ export function messagesFeature(ctx) { } } }, t('profPostBtn')), h('button', { class: 'btn-ghost', onClick: () => { ui.profCompose = null; render(); } }, t('cancel')))), + // the non-destructive way out: add another identity (Nostr, + // passkey, Google) next to this one and switch between them + // on the Accounts screen — logout stays for actually leaving + ctx.signInAnother ? h('button', { + class: 'btn-block', style: 'display:flex;align-items:center;justify-content:center;gap:8px', + onClick: () => ctx.signInAnother(), + }, + h('span', { style: 'display:flex', html: '' }), + t('signInAnother')) : null, logoutBtn()) : ui.pubProf ? null // no wallet open: messaging and paying both need one -- cgit v1.2.3