Merge pull request #2108 from Human-Connection/2102-Notifications_query_ignores_poll_interval_and_queries_infinitely

Fix: Poll Interval
This commit is contained in:
Alexander Friedland 2019-11-01 13:09:50 +01:00 committed by GitHub
commit 34283b6d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,9 +78,7 @@ export default {
query() {
return notificationQuery(this.$i18n)
},
pollInterval() {
return NOTIFICATIONS_POLL_INTERVAL
},
pollInterval: NOTIFICATIONS_POLL_INTERVAL,
update(data) {
const newNotifications = data.notifications.filter(newN => {
return !this.displayedNotifications.find(oldN => this.equalNotification(newN, oldN))