diff options
| author | Adam Soltys <[email protected]> | 2026-08-18 08:27:27 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-18 08:27:27 -0700 |
| commit | 1f8071e5d86104f5ad86d7d8f94f32daeda7fc76 (patch) | |
| tree | e89c7b3b0bbcc797414104a63165a23276177e2d /src/features/messages.js | |
| parent | f684cee551fc2d2470f518332597dd9072a7da90 (diff) | |
| download | coinosv3-1f8071e5d86104f5ad86d7d8f94f32daeda7fc76.tar.gz coinosv3-1f8071e5d86104f5ad86d7d8f94f32daeda7fc76.zip | |
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
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz
Diffstat (limited to 'src/features/messages.js')
| -rw-r--r-- | src/features/messages.js | 7 |
1 files changed, 6 insertions, 1 deletions
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 ----------------------------------------------------- |
