Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2018-07-11 14:18:49 +0300
committerGitHub <noreply@github.com>2018-07-11 14:18:49 +0300
commit9468694775a04fb1c7fa3ff65c77b3d6c58a147a (patch)
treee92b4256f7a5017c940120bb0fc3a9f053849806
parent6c5011d8e31e8291df6e94c8c9206f5053571074 (diff)
parent0d2a4db3f701107381db349a475b0f50466bbf10 (diff)
Merge pull request #138 from nextcloud/backport/130/allow-session-timeout
[stable13] Only pull for new messages if the session is allowed to be kept alive
-rw-r--r--js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index 99908a4..305ab1b 100644
--- a/js/app.js
+++ b/js/app.js
@@ -104,7 +104,9 @@
this.$container.on('click', '.notification-delete', _.bind(this._onClickDismissNotification, this));
// Setup the background checker
- this.interval = setInterval(_.bind(this.backgroundFetch, this), this.pollInterval);
+ if (oc_config.session_keepalive) {
+ this.interval = setInterval(_.bind(this.backgroundFetch, this), this.pollInterval);
+ }
},
/**