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

pull/21833/head
Michael Telatynski 2021-07-19 17:56:25 +01:00 committed by GitHub
commit b6feaf74bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 // 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) { export function avatarUrlForRoom(room: Room, width: number, height: number, resizeMethod?: ResizeMethod) {