fix: Move subscription to after initialize (#6752)
This commit is contained in:
@@ -72,13 +72,6 @@ export default {
|
|||||||
if (!this.hasAccounts) {
|
if (!this.hasAccounts) {
|
||||||
this.showAddAccountModal = true;
|
this.showAddAccountModal = true;
|
||||||
}
|
}
|
||||||
verifyServiceWorkerExistence(registration =>
|
|
||||||
registration.pushManager.getSubscription().then(subscription => {
|
|
||||||
if (subscription) {
|
|
||||||
registerSubscription();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
currentAccountId() {
|
currentAccountId() {
|
||||||
if (this.currentAccountId) {
|
if (this.currentAccountId) {
|
||||||
@@ -107,6 +100,14 @@ export default {
|
|||||||
this.updateRTLDirectionView(locale);
|
this.updateRTLDirectionView(locale);
|
||||||
this.latestChatwootVersion = latestChatwootVersion;
|
this.latestChatwootVersion = latestChatwootVersion;
|
||||||
vueActionCable.init(pubsubToken);
|
vueActionCable.init(pubsubToken);
|
||||||
|
|
||||||
|
verifyServiceWorkerExistence(registration =>
|
||||||
|
registration.pushManager.getSubscription().then(subscription => {
|
||||||
|
if (subscription) {
|
||||||
|
registerSubscription();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user