Revert "HOTFIX: fix normalizing room names on Android"

This reverts commit d47e6546ac.
This commit is contained in:
Saúl Ibarra Corretgé 2019-11-06 15:39:54 +01:00
parent 3e6a62334d
commit 753b714cd1
1 changed files with 2 additions and 6 deletions

View File

@ -120,12 +120,8 @@ export function getBackendSafeRoomName(room: ?string): ?string {
// But in this case we're fine goin on...
}
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.
}
// Normalize the character set
room = room.normalize('NFKC');
// Only decoded and normalized strings can be lowercased properly.
room = room.toLowerCase();