WelcomeBox: fetch profile after NIP07 sign in

This commit is contained in:
styppo 2023-01-14 17:47:32 +00:00
parent 546712725b
commit 89831219da
No known key found for this signature in database
GPG Key ID: 3AAA685C50724C28

View File

@ -16,6 +16,7 @@
<script>
import {useAppStore} from 'stores/App'
import {useNostrStore} from 'src/nostr/NostrStore'
import {useSettingsStore} from 'stores/Settings'
import Nip07 from 'src/utils/Nip07'
@ -24,6 +25,7 @@ export default {
setup() {
return {
app: useAppStore(),
nostr: useNostrStore(),
settings: useSettingsStore(),
}
},
@ -48,6 +50,8 @@ export default {
}
this.settings.addAccount(account)
this.settings.switchAccount(pubkey)
this.nostr.getProfile(pubkey)
},
},
mounted() {