Fix profile publishing on email sign up

This commit is contained in:
Jon Staab
2026-01-09 09:55:10 -08:00
parent a7c944e8ef
commit 8ae7cf05cc
3 changed files with 17 additions and 13 deletions
+12
View File
@@ -754,6 +754,18 @@ export const uploadFile = async (file: File, options: UploadFileOptions = {}) =>
// Update Profile
export const initProfile = (profile: Profile) => {
const template = createProfile(profile)
// Start out protected by default
template.tags.push(PROTECTED)
const event = makeEvent(PROFILE, template)
// Don't publish anywhere yet, wait until they join a space
return publishThunk({event, relays: []})
}
export const updateProfile = async ({
profile,
shouldBroadcast = !getTag(PROTECTED, profile.event?.tags || []),