Remove spurious blueslip error for topic lists.

If we update an unread count for a topic that is not part of
our truncated list, we don't need to complain.
This commit is contained in:
Steve Howell 2016-11-16 10:36:23 -08:00 committed by Tim Abbott
parent 9fec519b3d
commit 82a497ec08
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ exports.build_widget = function (parent_elem, stream, active_topic, max_topics)
self.set_count = function (topic, count) { self.set_count = function (topic, count) {
if (!self.topic_items.has(topic)) { if (!self.topic_items.has(topic)) {
blueslip.error('set_count fails for topic ' + topic); // This can happen for truncated topic lists. No need
// to warn about it.
return; return;
} }
var topic_li = self.topic_items.get(topic); var topic_li = self.topic_items.get(topic);