mirror of https://github.com/zulip/zulip.git
Only update unread counts if you're subscribed to that stream
(imported from commit 100047ad6ca1818cdf1c19dfafd0b2e06d95e380)
This commit is contained in:
parent
0da2f51ddb
commit
57d5bcf1f8
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue