mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-23 02:31:39 +01:00
apply PR suggestions
This commit is contained in:
parent
7bfadf37b4
commit
2d0122dda7
@ -147,8 +147,9 @@ export function parseUrlPath(urlPath: string, currentNavPath: Path<SegmentType>,
|
|||||||
segments.push(new Segment("empty-grid-tile", selectedIndex));
|
segments.push(new Segment("empty-grid-tile", selectedIndex));
|
||||||
}
|
}
|
||||||
} else if (type === "open-room") {
|
} else if (type === "open-room") {
|
||||||
const roomId = decodeURIComponent(iterator.next().value);
|
let roomId = iterator.next().value;
|
||||||
if (!roomId) { break; }
|
if (!roomId) { break; }
|
||||||
|
roomId = decodeURIComponent(roomId);
|
||||||
const rooms = currentNavPath.get("rooms");
|
const rooms = currentNavPath.get("rooms");
|
||||||
if (rooms) {
|
if (rooms) {
|
||||||
segments.push(roomsSegmentWithRoom(rooms, roomId, currentNavPath));
|
segments.push(roomsSegmentWithRoom(rooms, roomId, currentNavPath));
|
||||||
@ -176,8 +177,9 @@ export function parseUrlPath(urlPath: string, currentNavPath: Path<SegmentType>,
|
|||||||
} else if (type === "details" || type === "members") {
|
} else if (type === "details" || type === "members") {
|
||||||
pushRightPanelSegment(segments, type);
|
pushRightPanelSegment(segments, type);
|
||||||
} else if (type === "member") {
|
} else if (type === "member") {
|
||||||
const userId = decodeURIComponent(iterator.next().value);
|
let userId = iterator.next().value;
|
||||||
if (!userId) { break; }
|
if (!userId) { break; }
|
||||||
|
userId = decodeURIComponent(userId);
|
||||||
pushRightPanelSegment(segments, type, userId);
|
pushRightPanelSegment(segments, type, userId);
|
||||||
} else if (type.includes("loginToken")) {
|
} else if (type.includes("loginToken")) {
|
||||||
// Special case for SSO-login with query parameter loginToken=<token>
|
// Special case for SSO-login with query parameter loginToken=<token>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user