Update comment
This commit is contained in:
@@ -45,9 +45,10 @@ export function getKeyForRoom(roomId: string): string | null {
|
|||||||
function saveKeyFromUrlParams(urlParams: UrlParams): void {
|
function saveKeyFromUrlParams(urlParams: UrlParams): void {
|
||||||
if (!urlParams.password || !urlParams.roomId) return;
|
if (!urlParams.password || !urlParams.roomId) return;
|
||||||
|
|
||||||
// We set the Item by only using data from the url. This way we
|
// Take the key from the URL and save it.
|
||||||
// make sure, we always have matching pairs in the LocalStorage,
|
// It's important to always use the room ID specified in the URL
|
||||||
// as they occur in the call links.
|
// when saving keys rather than whatever the current room ID might be,
|
||||||
|
// in case we've moved to a different room but the URL hasn't changed.
|
||||||
saveKeyForRoom(urlParams.roomId, urlParams.password);
|
saveKeyForRoom(urlParams.roomId, urlParams.password);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user