From 1f8071e5d86104f5ad86d7d8f94f32daeda7fc76 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 18 Aug 2026 08:27:27 -0700 Subject: A missing signer opens a door instead of a toast: the reconnect screen offers the extension, the signer-app link, or a pasted key — same account enforced — and the silent reattach closes it on its own when it lands 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/features/messages.js') diff --git a/src/features/messages.js b/src/features/messages.js index 4202a75..02affc9 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -155,7 +155,12 @@ export function messagesFeature(ctx) { const isMe = (pk) => myPubkeys().includes(pk); // "No identity" while soft-locked means the keys left with the lock — say // that, not "signer disconnected" (which reads as a nostr-login problem). - const noIdToast = () => toast(t(wallet.watchOnly ? 'msgLockedChat' : 'msgNoIdentity')); + const noIdToast = () => { + // A missing signer gets the reconnect screen, not a dead-end toast — + // logging out and back in was the workaround nobody should need. + if (!wallet.watchOnly && hook('nostrReconnectPrompt')) return; + toast(t(wallet.watchOnly ? 'msgLockedChat' : 'msgNoIdentity')); + }; // ---- shared runtime ----------------------------------------------------- -- cgit v1.2.3