about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-05-20 11:36:44 +0200
committerThibaut Girka <thib@sitedethib.com>2018-05-21 17:52:26 +0200
commit463078dcc472b427f45c776870f6928e340d0045 (patch)
treeca207d943824f297cfdfc27e12cba346d3b9facd
parenta4c9bda771c04526005f708dfb9ca2ccced60d52 (diff)
[Glitch] Do not override the default push notification settings
Port 1951ff41b33b264fd8179998648c3cbbf2834cd5 to glitch-soc
-rw-r--r--app/javascript/flavours/glitch/actions/push_notifications/registerer.js7
1 files changed, 0 insertions, 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 5ad11f73f..91f442415 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.');