[Glitch] Do not override the default push notification settings

Port 6bee19117f to glitch-soc
lolsob-rspec
Thibaut Girka 2018-05-20 11:36:44 +02:00
parent 72c454e2b3
commit 4e5afb1c41
1 changed files with 0 additions and 7 deletions

View File

@ -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.');