fix: more work on room loading
This commit is contained in:
parent
be84aef1e0
commit
dc91d0ab8c
1 changed files with 2 additions and 0 deletions
|
@ -340,12 +340,14 @@
|
||||||
const room_id = hash.substring(12) || first_room_id;
|
const room_id = hash.substring(12) || first_room_id;
|
||||||
|
|
||||||
if (!room_id) {
|
if (!room_id) {
|
||||||
|
setTimeout(check_for_room_in_url, 100);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const room_chat_container = document.getElementById("room-chat-container");
|
const room_chat_container = document.getElementById("room-chat-container");
|
||||||
|
|
||||||
if (room_chat_container.dataset.room_id !== room_id) {
|
if (room_chat_container.dataset.room_id !== room_id) {
|
||||||
|
window.location.hash = `/talk/room/${room_id}`;
|
||||||
room_chat_container.dataset.room_id = room_id;
|
room_chat_container.dataset.room_id = room_id;
|
||||||
load_room(room_id);
|
load_room(room_id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue