Skip to content

Commit dd55d29

Browse files
authored
Add references to MSCs for account management account= query param (#5016)
2 parents 20789f9 + 0938fd7 commit dd55d29

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

frontend/src/routes/_account.index.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,38 +93,39 @@ export const Route = createFileRoute({
9393

9494
beforeLoad({ search }) {
9595
switch (search.action) {
96-
case "profile":
97-
case "org.matrix.profile":
96+
case "profile": // This is an unspecced alias for org.matrix.profile that can be removed
97+
case "org.matrix.profile": // This is from unstable MSC4191
9898
throw redirect({ to: "/", search: {} });
9999

100-
case "sessions_list":
101-
case "org.matrix.sessions_list":
100+
case "sessions_list": // This is an unspecced alias for org.matrix.sessions_list that can be removed
101+
case "org.matrix.sessions_list": // This is from unstable MSC4191
102102
throw redirect({ to: "/sessions" });
103103

104-
case "session_view":
105-
case "org.matrix.session_view":
104+
case "session_view": // This is an unspecced alias for org.matrix.session_view that can be removed
105+
case "org.matrix.session_view": // This is from unstable MSC4191
106106
if (search.device_id)
107107
throw redirect({
108108
to: "/devices/$",
109109
params: { _splat: search.device_id },
110110
});
111111
throw redirect({ to: "/sessions" });
112112

113-
case "session_end":
114-
case "org.matrix.session_end":
113+
case "session_end": // This is the unstable MSC3824 alias for org.matrix.session_end
114+
case "org.matrix.session_end": // This is from unstable MSC4191
115115
if (search.device_id)
116116
throw redirect({
117117
to: "/devices/$",
118118
params: { _splat: search.device_id },
119119
});
120120
throw redirect({ to: "/sessions" });
121121

122-
case "org.matrix.cross_signing_reset":
122+
case "org.matrix.cross_signing_reset": // This is from unstable MSC4191
123123
throw redirect({
124124
to: "/reset-cross-signing",
125125
search: { deepLink: true },
126126
});
127127
case "org.matrix.plan_management": {
128+
// This is an unspecced experimental value
128129
// We don't both checking if the plan management iframe is actually available and
129130
// instead rely on the plan tab handling it.
130131
throw redirect({ to: "/plan" });

0 commit comments

Comments
 (0)