aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-15 15:59:35 -0700
committerAdam Soltys <[email protected]>2026-08-15 15:59:35 -0700
commitcae7dcfbf8e1222f496cee003a436f24d5a43686 (patch)
tree816863aa1a773a49bff0abf8d45bacf8e19ca16a /src/app.js
parentc42f379ad3ae25eec94404c8e64ea19c9921f03a (diff)
downloadcoinosv3-cae7dcfbf8e1222f496cee003a436f24d5a43686.tar.gz
coinosv3-cae7dcfbf8e1222f496cee003a436f24d5a43686.zip
Your profile knows it's yours even when the keys are elsewhere — ownership follows the identity the header wears, not just the loaded signer
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014tE4U5nEjGTQy8PwYqamfv
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js
index af7421d..0bbf857 100644
--- a/src/app.js
+++ b/src/app.js
@@ -4068,6 +4068,10 @@ const ctx = {
// full sign-out (distinct from the padlock's lock-in-place): clear the
// session and leave — offering a password if none protects the vault yet
logout: () => { lock({ offerPassword: true }); },
+ // the identity the header avatar currently wears (login > seed key >
+ // remembered) — profile "mine"-ness must match what the user clicked
+ shownPubkey: () => (featureHook('nostrLoginIdentity') || {}).pubkey
+ || (wallet.nostrPubkey && wallet.nostrPubkey()) || (activeAccount() || {}).nostrPk || null,
getAccount: () => accountSel(),
setAccount: (a, dir) => setAccountSel(a, dir),
// Open (or create) a wallet from a mnemonic — used by nostr login.