Only update unread counts if you're subscribed to that stream

(imported from commit 100047ad6ca1818cdf1c19dfafd0b2e06d95e380)
This commit is contained in:
Leo Franchi 2013-05-06 11:41:43 -04:00
parent 0da2f51ddb
commit 57d5bcf1f8
1 changed files with 4 additions and 0 deletions

View File

@ -293,6 +293,10 @@ function update_unread_counts() {
}
$.each(unread_counts.stream, function(index, obj) {
if (! subs.have(index)) {
return true;
}
var count = Object.keys(obj).length;
ui.set_count("stream", index, count);
if (narrow.stream_in_home(index)) {