Update user avatars

This commit is contained in:
Robert Long
2021-12-20 09:12:28 -08:00
parent 61552af5fb
commit 493445a6b0
8 changed files with 66 additions and 17 deletions

View File

@@ -624,7 +624,7 @@ export function getRoomUrl(roomId) {
}
}
function getAvatarUrl(client, mxcUrl, avatarSize = 96) {
export function getAvatarUrl(client, mxcUrl, avatarSize = 96) {
const width = Math.floor(avatarSize * window.devicePixelRatio);
const height = Math.floor(avatarSize * window.devicePixelRatio);
return mxcUrl && client.mxcUrlToHttp(mxcUrl, width, height, "crop");