Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b6feaf7

Browse files
authored
Merge pull request #6407 from robintown/uppercase-avatar-placeholders
2 parents 4856559 + b36c748 commit b6feaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Avatar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function getInitialLetter(name: string): string {
129129
}
130130

131131
// rely on the grapheme cluster splitter in lodash so that we don't break apart compound emojis
132-
return split(name, "", 1)[0];
132+
return split(name, "", 1)[0].toUpperCase();
133133
}
134134

135135
export function avatarUrlForRoom(room: Room, width: number, height: number, resizeMethod?: ResizeMethod) {

0 commit comments

Comments
 (0)