Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
channel-topic-list: Fix inbox filter to use operand for channel ID.
Lauryn Menard75407331d250
diff --git a/web/src/inbox_ui.ts b/web/src/inbox_ui.tsindex 46ac953dec2..d21ef5ff9d6 100644--- a/web/src/inbox_ui.ts+++ b/web/src/inbox_ui.ts@@ -318,7 +318,7 @@ export function show(filter?: Filter): void {const is_new_filter_channel_view = filter?.is_channel_view();if (was_inbox_channel_view && is_new_filter_channel_view) {assert(filter !== undefined);- const filter_channel_id_string = filter.terms_with_operator("channel")[0]!.operator;+ const filter_channel_id_string = filter.terms_with_operator("channel")[0]!.operand;const filter_channel_id = Number.parseInt(filter_channel_id_string, 10);if (inbox_util.get_channel_id() === filter_channel_id) {diff --git a/web/src/inbox_util.ts b/web/src/inbox_util.tsindex d2d8152c432..049b5cb9267 100644--- a/web/src/inbox_util.ts+++ b/web/src/inbox_util.ts@@ -27,7 +27,7 @@ export function current_filter(): Filter | undefined {export function get_channel_id(): number {assert(filter !== undefined);- const narrow_channel_stream_id_string = filter.terms_with_operator("channel")[0]!.operator;+ const narrow_channel_stream_id_string = filter.terms_with_operator("channel")[0]!.operand;return Number.parseInt(narrow_channel_stream_id_string, 10);}