From f4626b164e535cb84847fc5490491ffbdbeeec00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 5 Nov 2019 12:12:17 +0100 Subject: [PATCH] HOTFIX: fix normalizing room names on Android "normalize" will raise an exception, probably because the JSC build is not full-ICU enabled. --- react/features/base/util/uri.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/react/features/base/util/uri.js b/react/features/base/util/uri.js index 197b480e7..d20d3146b 100644 --- a/react/features/base/util/uri.js +++ b/react/features/base/util/uri.js @@ -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();