diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-01-12 17:01:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 17:01:14 -0800 |
commit | 8cc1bd0c40c5eb6ba6ef7949d33f80d79d75f410 (patch) | |
tree | ba664bffecae41874c3198d32931b5c9672c6ce9 /src | |
parent | 40c757afa9bf8f53da858a213227288d9affa5f7 (diff) | |
download | voidsky-8cc1bd0c40c5eb6ba6ef7949d33f80d79d75f410.tar.zst |
Create a profile record on new user (#2520)
* Create a profile record on new user * Dont hold up account creation for the profile
Diffstat (limited to 'src')
-rw-r--r-- | src/state/session/index.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx index f707c1598..0a565c975 100644 --- a/src/state/session/index.tsx +++ b/src/state/session/index.tsx @@ -223,6 +223,12 @@ export function Provider({children}: React.PropsWithChildren<{}>) { throw new Error(`session: createAccount failed to establish a session`) } + /*dont await*/ agent.upsertProfile(_existing => { + return { + displayName: handle, + } + }) + const account: SessionAccount = { service: agent.service.toString(), did: agent.session.did, |