Fix loading on older browsers (#424)
authorKrishan <33421343+kfiven@users.noreply.github.com>
Wed, 23 Mar 2022 13:03:19 +0000 (18:33 +0530)
committerGitHub <noreply@github.com>
Wed, 23 Mar 2022 13:03:19 +0000 (18:33 +0530)
src/util/sort.js

index 72ba3c43f742b8287c053807a7b354ae5abebeb8..f9a0b7908338188a3d4b59a9a27472221c85bbec 100644 (file)
@@ -13,8 +13,8 @@ export function roomIdByAtoZ(aId, bId) {
 
   // remove "#" from the room name
   // To ignore it in sorting
-  aName = aName.replaceAll('#', '');
-  bName = bName.replaceAll('#', '');
+  aName = aName.replace(/#/g, '');
+  bName = bName.replace(/#/g, '');
 
   if (aName.toLowerCase() < bName.toLowerCase()) {
     return -1;