mirror of https://github.com/zulip/zulip.git
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:
parent
5f3de977d9
commit
42a7b7e982
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue