From b36c748940992a1db7b9d880c9dd0a111f61a6b8 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Mon, 19 Jul 2021 12:48:44 -0400 Subject: [PATCH] Fix avatar placeholders not getting capitalized Regressed by 096d0a7d12070f5cca751c341f7141e8b32d8234. Signed-off-by: Robin Townsend --- src/Avatar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avatar.ts b/src/Avatar.ts index b9acf93e29..c0ecb19eaf 100644 --- a/src/Avatar.ts +++ b/src/Avatar.ts @@ -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) {