mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 10:17:47 +00:00
HOTFIX: fix normalizing room names on Android
"normalize" will raise an exception, probably because the JSC build is not full-ICU enabled.
This commit is contained in:
@@ -120,8 +120,12 @@ export function getBackendSafeRoomName(room: ?string): ?string {
|
||||
// But in this case we're fine goin on...
|
||||
}
|
||||
|
||||
// Normalize the character set
|
||||
room = room.normalize('NFKC');
|
||||
try {
|
||||
// Normalize the character set
|
||||
room = room.normalize('NFKC');
|
||||
} catch (e) {
|
||||
// Android's JSC does not seem to be a full-ICU build so this will raise an exception.
|
||||
}
|
||||
|
||||
// Only decoded and normalized strings can be lowercased properly.
|
||||
room = room.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user