compose: Support `channel` in transforming stream-topic links.

This commit extends the work in #29302 to support the new
"channel" operator, which is synonymous to the "stream" operator
in transforming stream-topic links to the #**stream>topic** syntax.
This commit is contained in:
Kislay Verma 2024-07-16 02:11:25 +05:30 committed by Tim Abbott
parent 5f3de977d9
commit 42a7b7e982
1 changed files with 2 additions and 2 deletions

View File

@ -304,8 +304,8 @@ export function decode_stream_topic_from_url(
return null;
}
// This check is important as a malformed url
// may have `stream`, `topic` or `near:` in a wrong order
if (terms[0]?.operator !== "stream") {
// may have `stream` / `channel`, `topic` or `near:` in a wrong order
if (terms[0]?.operator !== "stream" && terms[0]?.operator !== "channel") {
return null;
}
if (terms.length === 1) {