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 warn for expected zoomed-in unread count misses.

Aman Agrawalfd4b469f6c09
diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts
index d0135faea98..045ef085e1f 100644
--- a/web/src/stream_list.ts
+++ b/web/src/stream_list.ts
@@ -925,9 +925,9 @@ function set_stream_unread_count(
if (zoomed_in) {
const $stream_li = get_stream_li(stream_id);
if (!$stream_li) {
- // This can happen for legitimate reasons, but we warn
- // just in case.
- blueslip.warn("stream id no longer in sidebar: " + stream_id);
+ // When zoomed in, only the zoomed-in stream has a
+ // row in the zoomed view, so this is expected for
+ // all other streams.
return;
}
update_count_in_dom(