From 4e5afb1c41bff597ddf0c6f1a2ca6a551bdf4a75 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 20 May 2018 11:36:44 +0200 Subject: [PATCH] [Glitch] Do not override the default push notification settings Port 6bee19117faff0fe3460034043ad9b6ba3bf0cba to glitch-soc --- .../glitch/actions/push_notifications/registerer.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/javascript/flavours/glitch/actions/push_notifications/registerer.js b/app/javascript/flavours/glitch/actions/push_notifications/registerer.js index 5ad11f73ff..91f442415a 100644 --- a/app/javascript/flavours/glitch/actions/push_notifications/registerer.js +++ b/app/javascript/flavours/glitch/actions/push_notifications/registerer.js @@ -56,13 +56,6 @@ export function register () { dispatch(setBrowserSupport(supportsPushNotifications)); const me = getState().getIn(['meta', 'me']); - if (me && !pushNotificationsSetting.get(me)) { - const alerts = getState().getIn(['push_notifications', 'alerts']); - if (alerts) { - pushNotificationsSetting.set(me, { alerts: alerts }); - } - } - if (supportsPushNotifications) { if (!getApplicationServerKey()) { console.error('The VAPID public key is not set. You will not be able to receive Web Push Notifications.');