1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2026-01-03 21:42:32 +03:00

Merge pull request #6407 from robintown/uppercase-avatar-placeholders

This commit is contained in:
Michael Telatynski
2021-07-19 17:56:25 +01:00
committed by GitHub

View File

@@ -129,7 +129,7 @@ export function getInitialLetter(name: string): string {
}
// rely on the grapheme cluster splitter in lodash so that we don't break apart compound emojis
return split(name, "", 1)[0];
return split(name, "", 1)[0].toUpperCase();
}
export function avatarUrlForRoom(room: Room, width: number, height: number, resizeMethod?: ResizeMethod) {