diff --git a/src/shared/managers/SubscriptionManager.ts b/src/shared/managers/SubscriptionManager.ts index 1a95eb438..5c615e899 100644 --- a/src/shared/managers/SubscriptionManager.ts +++ b/src/shared/managers/SubscriptionManager.ts @@ -883,27 +883,6 @@ export class SubscriptionManager { }; } - private async getSubscriptionStateForInsecure(): Promise { - /* For HTTP, we need to rely on stored values; we never have access to the actual data */ - const { deviceId, subscriptionToken, optedOut } = - await Database.getSubscription(); - const notificationPermission = - await this.context.permissionManager.getNotificationPermission( - this.context.appConfig.safariWebId, - ); - - const isPushEnabled = !!( - deviceId && - subscriptionToken && - notificationPermission === NotificationPermission.Granted - ); - - return { - subscribed: isPushEnabled, - optedOut: !!optedOut, - }; - } - /** * Broadcasting to the server the fact user tried to subscribe but there was an error during service worker registration. * Do it only once for the first page view.