Load user profile from Nostr, display name and avatar

This commit is contained in:
2026-04-20 13:37:05 +04:00
parent 3a56464926
commit 8cc579e271
5 changed files with 193 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ export default class UserMenuComponent extends Component {
@service storage;
@service osmAuth;
@service nostrAuth;
@service nostrData;
@tracked isNostrConnectModalOpen = false;
@@ -135,7 +136,7 @@ export default class UserMenuComponent extends Component {
<div class="account-status">
{{#if this.nostrAuth.isConnected}}
<strong title={{this.nostrAuth.pubkey}}>
{{this.nostrAuth.pubkey}}
{{this.nostrData.userDisplayName}}
</strong>
{{else}}
Not connected