change room slug
This commit is contained in:
parent
0164d24329
commit
d3a24b06c2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user