Create room when not found and lowercase name

This commit is contained in:
Robert Long
2022-03-03 16:56:45 -08:00
parent 014b740e47
commit 35fb1e710b
6 changed files with 44 additions and 115 deletions

View File

@@ -55,10 +55,8 @@ export function roomNameFromRoomId(roomId) {
.match(/([^:]+):.*$/)[1]
.substring(1)
.split("-")
.map((part) =>
part.length > 0 ? part.charAt(0).toUpperCase() + part.slice(1) : part
)
.join(" ");
.join(" ")
.toLowerCase();
}
export function isLocalRoomId(roomId) {