change room slug

This commit is contained in:
_Bastler 2021-09-20 19:31:51 +02:00
parent 0164d24329
commit d3a24b06c2

View File

@ -38,7 +38,7 @@ class UrlManager {
} }
public pushRoomIdToUrl(room: Room): void { public pushRoomIdToUrl(room: Room): void {
if (window.location.pathname === room.id) return; if (window.location.pathname === room.id || room.isPublic) return;
//Set last room visited! (connected or nor, must to be saved in localstorage and cache API) //Set last room visited! (connected or nor, must to be saved in localstorage and cache API)
localUserStore.setLastRoomUrl(room.key); localUserStore.setLastRoomUrl(room.key);
const hash = window.location.hash; const hash = window.location.hash;