Fix avatar placeholders not getting capitalized
Regressed by 096d0a7d12
.
Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
parent
4856559661
commit
b36c748940
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue