Skip to content

Commit

Permalink
Merge pull request #1302 from nextcloud/backport/1301/stable25
Browse files Browse the repository at this point in the history
[stable25] Fix multi-tab usage with notify_push
  • Loading branch information
nickvergessen authored Oct 10, 2022
2 parents b3eff02 + 01cf36e commit e2e95f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/notifications-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/notifications-main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/NotificationsApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export default {
*/
_fetchAfterNotifyPush() {
this.backgroundFetching = true
if (this.notifyPush && this.tabId !== this.lastTabId) {
if (this.hasNotifyPush && this.tabId !== this.lastTabId) {
console.debug('Deferring notification refresh from browser storage are notify_push event to give the last tab the chance to do it')
setTimeout(() => {
this._fetch()
Expand Down

0 comments on commit e2e95f7

Please sign in to comment.