Skip to content

Commit

Permalink
Merge pull request #1304 from nextcloud/backport/1301/stable23
Browse files Browse the repository at this point in the history
[stable23] Fix multi-tab usage with notify_push
  • Loading branch information
nickvergessen authored Oct 8, 2022
2 parents f6e9197 + b9699ea commit b8eba04
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/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,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 b8eba04

Please sign in to comment.