Browse Source

Do not override the default push notification settings (#6037)

closed-social-v3
Akihiko Odaki 6 years ago
committed by Eugen Rochko
parent
commit
1951ff41b3
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      app/javascript/mastodon/actions/push_notifications/registerer.js

+ 0
- 7
app/javascript/mastodon/actions/push_notifications/registerer.js View File

@ -51,13 +51,6 @@ export function register () {
return (dispatch, getState) => {
dispatch(setBrowserSupport(supportsPushNotifications));
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.');

Loading…
Cancel
Save