Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow: Use canonical "channel" operator consistently.
Lauryn Menard127ff1907f53
diff --git a/web/src/message_view.ts b/web/src/message_view.tsindex 391df2c2117..d213ce73208 100644--- a/web/src/message_view.ts+++ b/web/src/message_view.ts@@ -1565,7 +1565,7 @@ export function narrow_by_recipient(show([{- operator: "stream",+ operator: "channel",operand: message.stream_id.toString(),},],diff --git a/web/src/stream_popover.ts b/web/src/stream_popover.tsindex 4499ea00d28..233fb3c3cbe 100644--- a/web/src/stream_popover.ts+++ b/web/src/stream_popover.ts@@ -170,7 +170,7 @@ function build_stream_popover(opts: {elt: HTMLElement; stream_id: number}): voidmessage_view.show([{- operator: "stream",+ operator: "channel",operand: sub.stream_id.toString(),},],diff --git a/web/src/stream_topic_history_util.ts b/web/src/stream_topic_history_util.tsindex 6cabaa9ede8..9e83c0f9cce 100644--- a/web/src/stream_topic_history_util.ts+++ b/web/src/stream_topic_history_util.ts@@ -75,7 +75,7 @@ export function update_topic_last_message_id(url: "/json/messages",data: {narrow: JSON.stringify([- {operator: "stream", operand: stream_id},+ {operator: "channel", operand: stream_id},{operator: "topic", operand: topic_name},]),anchor: "newest",diff --git a/web/src/ui_init.js b/web/src/ui_init.jsindex b9aeb170521..26e1b9e1258 100644--- a/web/src/ui_init.js+++ b/web/src/ui_init.js@@ -606,7 +606,7 @@ export async function initialize_everything(state_data) {message_view.show([{- operator: "stream",+ operator: "channel",operand: sub.stream_id.toString(),},],diff --git a/web/tests/stream_topic_history.test.cjs b/web/tests/stream_topic_history.test.cjsindex 9b577412d68..d3a61093f94 100644--- a/web/tests/stream_topic_history.test.cjs+++ b/web/tests/stream_topic_history.test.cjs@@ -457,7 +457,7 @@ test("ask_server_for_latest_topic_data", () => {assert.equal(opts.url, "/json/messages");assert.deepEqual(opts.data, {anchor: "newest",- narrow: '[{"operator":"stream","operand":1080},{"operator":"topic","operand":"Topic1"}]',+ narrow: '[{"operator":"channel","operand":1080},{"operator":"topic","operand":"Topic1"}]',num_after: 0,num_before: 1,allow_empty_topic_name: true,