Browse Source

Another rollback

master
morethanwords 3 years ago
parent
commit
4d2523d810
  1. 2
      src/lib/appManagers/appNotificationsManager.ts

2
src/lib/appManagers/appNotificationsManager.ts

@ -706,6 +706,7 @@ export class AppNotificationsManager { @@ -706,6 +706,7 @@ export class AppNotificationsManager {
}
private registerDevice(tokenData: PushSubscriptionNotify) {
return;
if(this.registeredDevice && deepEqual(this.registeredDevice, tokenData)) {
return false;
}
@ -724,6 +725,7 @@ export class AppNotificationsManager { @@ -724,6 +725,7 @@ export class AppNotificationsManager {
}
private unregisterDevice(tokenData: PushSubscriptionNotify) {
return;
if(!this.registeredDevice) {
return false;
}

Loading…
Cancel
Save