Implement profile updates

This commit is contained in:
Paul Frazee 2022-11-11 14:15:43 -06:00
parent fe52d19c48
commit 38ed9a7943
9 changed files with 24 additions and 33 deletions

View file

@ -43,7 +43,13 @@ export function Component({}: {}) {
handle: fullHandle,
})
// set the scene profile
// TODO
await store.api.app.bsky.actor
.updateProfile({
did: createSceneRes.data.did,
displayName,
description,
})
.catch(e => console.error(e)) // an error here is not critical
// follow the scene
await store.api.app.bsky.graph.follow
.create(

View file

@ -127,7 +127,7 @@ export const ProfileHeader = observer(function ProfileHeader({
if (isCreator) {
dropdownItems.push({
label: 'Edit Profile',
onPress: () => {}, // TODO
onPress: onPressEditProfile,
})
}
if (isMember) {