diff options
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 ----------------------------------------------------- |
