From 49ae68290099bc37bbbf6d7ad4dee9f906623a38 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 17 Aug 2026 07:03:28 -0700 Subject: The profile grows a second, honest exit: Log out leaves the room, Log out & forget this device burns it down — behind the Delete-all warning, which now also sweeps the cached balances and history it always implied MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz --- src/features/messages.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/features') diff --git a/src/features/messages.js b/src/features/messages.js index db4ad93..f7fc30a 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -1487,6 +1487,13 @@ export function messagesFeature(ctx) { }, h('span', { style: 'display:flex', html: '' }), t('logout')); + // Two clearly-named exits: leave (wallets stay saved, one unlock away), + // or leave and take everything with you — the latter behind the + // Delete-all warning, never a single tap. + const forgetBtn = () => ctx.logoutForget ? h('button', { + class: 'btn-ghost btn-block small', style: 'color:var(--muted)', + onClick: () => ctx.logoutForget(), + }, t('logoutForget')) : null; const full = fullProfiles.get(pk); // Your own profile IS the editor — and it renders IMMEDIATELY, seeded // from the local name/picture cache, so the page never reflows when the @@ -1569,9 +1576,10 @@ export function messagesFeature(ctx) { h('button', { class: 'btn-primary btn-block', disabled: ui.profSaving, onClick: saveProfile }, ui.profSaving ? h('span', { class: 'spinner sm' }) : t('save')), hook('hatShopEntry'), - logoutBtn()) + logoutBtn(), + forgetBtn()) : mine - ? logoutBtn() // the editor renders above once the kind 0 loads + ? h('div', { class: 'col', style: 'gap:8px' }, logoutBtn(), forgetBtn()) // the editor renders above once the kind 0 loads : h('div', { class: 'row gap6 wrap' }, h('button', { class: 'btn-primary grow', onClick: () => { const peer = pk; -- cgit v1.2.3