mirror of https://github.com/zulip/zulip.git
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:
parent
9fec519b3d
commit
82a497ec08
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue