summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index a8cac9a4b..4aa5486a3 100644
--- a/functions.js
+++ b/functions.js
@@ -459,8 +459,8 @@ function parse_counters(reply, scheduled_call) {
if (id == "global-unread") {
- if (ctr != global_unread) {
- offlineDownloadStart();
+ if (ctr > global_unread) {
+ offlineDownloadStart(1);
}
global_unread = ctr;