diff options
| author | Adam Soltys <[email protected]> | 2026-08-04 02:06:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-04 02:06:58 -0700 |
| commit | c124a845ea1ed2d755032eb4de09eccace88cd12 (patch) | |
| tree | 690c26440002b25b4b5a26cb1a076a3253b36dc7 /src/app.js | |
| parent | 68163354889ea121d1bd3b6437143dc44857ace0 (diff) | |
| download | coinosv3-c124a845ea1ed2d755032eb4de09eccace88cd12.tar.gz coinosv3-c124a845ea1ed2d755032eb4de09eccace88cd12.zip | |
The wizard offers a profile, it doesn't overwrite one
Finishing the avatar step published name = the payment-address name and
the default punk under the user's real nostr identity — renaming (and
re-facing) profiles that already existed. Wizard-suggested fields are
fill-only now: they land only where the profile has nothing.
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2311,8 +2311,11 @@ function onboardScreen() { const fields = { name: addr ? addr.split('@')[0] : undefined, picture }; // Publishing the profile is a nicety — a signer that can't sign // right now (a sleeping phone bunker) must not trap the wizard. + // And it's an OFFER: the address-derived name (and, unless they + // actually picked one, the default punk) only fills gaps — it + // never renames an identity that already has a profile. if (fields.name || fields.picture) { - try { await featureHook('publishProfile', fields); } + try { await featureHook('publishProfile', fields, { fillOnly: o.avatar ? ['name'] : ['name', 'picture'] }); } catch (e) { toast(t('onbProfileSkipped')); console.warn('onboarding: profile publish failed —', e.message); } } o.step = 'success'; |
