Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(Avatar): Display special characters in avatar initials

Vlad Piersec15b677aa2ab4
diff --git a/react/features/base/avatar/functions.js b/react/features/base/avatar/functions.js
index 2816abbb44..9e87c6aded 100644
--- a/react/features/base/avatar/functions.js
+++ b/react/features/base/avatar/functions.js
@@ -53,7 +53,7 @@ export function getInitials(s: ?string) {
let initials = '';
for (const w of words) {
- (initials.length < 2) && (initials += w.substr(0, 1).toUpperCase());
+ (initials.length < 2) && (initials += String.fromCodePoint(w.codePointAt(0)).toUpperCase());
}
return initials;