diff --git a/src/room/RoomRedirect.jsx b/src/room/RoomRedirect.jsx index 3c733fc1..16454f8f 100644 --- a/src/room/RoomRedirect.jsx +++ b/src/room/RoomRedirect.jsx @@ -11,7 +11,7 @@ export function RoomRedirect() { let roomId = pathname; if (pathname.startsWith("/")) { - roomId = roomId.substr(1, roomId.length); + roomId = roomId.substring(1, roomId.length); } if (!roomId.startsWith("#") && !roomId.startsWith("!")) {