[Glitch] Do not override the default push notification settings
Port 1951ff41b33b264fd8179998648c3cbbf2834cd5 to glitch-soc
This commit is contained in:
		
							parent
							
								
									a4c9bda771
								
							
						
					
					
						commit
						463078dcc4
					
				| @ -56,13 +56,6 @@ export function register () { | |||||||
|     dispatch(setBrowserSupport(supportsPushNotifications)); |     dispatch(setBrowserSupport(supportsPushNotifications)); | ||||||
|     const me = getState().getIn(['meta', 'me']); |     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 (supportsPushNotifications) { | ||||||
|       if (!getApplicationServerKey()) { |       if (!getApplicationServerKey()) { | ||||||
|         console.error('The VAPID public key is not set. You will not be able to receive Web Push Notifications.'); |         console.error('The VAPID public key is not set. You will not be able to receive Web Push Notifications.'); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user