minor: Update stream_list comment.

This commit is contained in:
Steve Howell
2020-04-06 17:39:56 +00:00
committed by Tim Abbott
parent 939223426b
commit 0ebc5e8e73

View File

@@ -395,11 +395,11 @@ exports.update_stream_sidebar_for_narrow = function (filter) {
const stream_li = exports.get_stream_li(stream_id);
if (!stream_li) {
// It should be the case then when we have a subscribed
// 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. We have
// evidence that this assumption breaks down for some users,
// but we are not clear why it happens.
// 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);
topic_zoom.clear_topics();
return;