mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Merge pull request #6407 from robintown/uppercase-avatar-placeholders
This commit is contained in:
commit
b6feaf74bc
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user