diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/features/names.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/features/names.js b/src/features/names.js index fe822e7..8b7ae74 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -237,7 +237,11 @@ export function namesFeature(ctx) { if (!name) return; ui.busy = true; ui.nameClaimError = null; render(); try { - await claim(name); + // Sign with the login identity when one can be (re)attached: the + // registrar lets a migrated coinos user's own identity take their + // name back, which the wallet key alone could never prove. + const signer = await Promise.resolve(hook('nostrLoginResume')).catch(() => null); + await claim(name, signer ? { signer, manager: wallet.nostrPubkey() } : {}); ui.nameClaim = ''; toast(t('namesClaimed', { name: `${name}@${DOMAIN}` })); } catch (e) { ui.nameClaimError = e.message; } |
