mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-08 18:48:18 +01:00
ensure there is a session id in last-session action
This commit is contained in:
parent
2c7ea44afd
commit
d567664d8b
@ -115,7 +115,7 @@ export function parseUrlPath(urlPath, currentNavPath, defaultSessionId) {
|
||||
segments.push(new Segment("room", roomId));
|
||||
} else if (type === "last-session") {
|
||||
let sessionSegment = currentNavPath.get("session");
|
||||
if (!sessionSegment?.value && defaultSessionId) {
|
||||
if (typeof sessionSegment?.value !== "string" && defaultSessionId) {
|
||||
sessionSegment = new Segment("session", defaultSessionId);
|
||||
}
|
||||
if (sessionSegment) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user