Fix types

This commit is contained in:
Robin Townsend
2022-10-13 21:25:15 -04:00
parent 004160b664
commit 81771f511c
5 changed files with 8 additions and 6 deletions

View File

@@ -101,7 +101,9 @@ export function useProfile(client: MatrixClient) {
if (removeAvatar) {
await client.setAvatarUrl("");
} else if (avatar) {
mxcAvatarUrl = await client.uploadContent(avatar);
({ content_uri: mxcAvatarUrl } = await client.uploadContent(
avatar
));
await client.setAvatarUrl(mxcAvatarUrl);
}