Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_list: Don't error for expected zoomed-in narrow sidebar misses.

Aman Agrawal78f3c153383c
diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts
index f1d54d5348d..a1c92b6f7b9 100644
--- a/web/src/stream_list.ts
+++ b/web/src/stream_list.ts
@@ -1222,12 +1222,8 @@ export function update_stream_sidebar_for_narrow(filter: Filter): JQuery | undef
const $stream_li = get_stream_li(stream_id);
if (!$stream_li) {
- // This is a sanity check. When we narrow to a subscribed
- // stream, there will always be a stream list item
- // corresponding to that stream in our sidebar. This error
- // stopped appearing from March 2018 until at least
- // April 2020, so if it appears again, something regressed.
- blueslip.error("No stream_li for subscribed stream", {stream_id});
+ // When zoomed into a channel's topic list, only the
+ // zoomed-in channel has a row in the sidebar.
clear_topics();
return undefined;
}