From 8cc1bd0c40c5eb6ba6ef7949d33f80d79d75f410 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 12 Jan 2024 17:01:14 -0800 Subject: [PATCH] Create a profile record on new user (#2520) * Create a profile record on new user * Dont hold up account creation for the profile --- src/state/session/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx index f707c159..0a565c97 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,