diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2018-07-11 14:18:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 14:18:49 +0300 |
commit | 9468694775a04fb1c7fa3ff65c77b3d6c58a147a (patch) | |
tree | e92b4256f7a5017c940120bb0fc3a9f053849806 | |
parent | 6c5011d8e31e8291df6e94c8c9206f5053571074 (diff) | |
parent | 0d2a4db3f701107381db349a475b0f50466bbf10 (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.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); + } }, /** |