Another rollback

This commit is contained in:
morethanwords 2021-06-18 14:11:06 +03:00
parent 822fc8e13e
commit 4d2523d810

View File

@ -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 {
}
private unregisterDevice(tokenData: PushSubscriptionNotify) {
return;
if(!this.registeredDevice) {
return false;
}