enable push gateway only if the server is registered (#22346)

Co-authored-by: pierre-lehnen-rc <55164754+pierre-lehnen-rc@users.noreply.github.com>
pull/22369/head
Lucas Sartor Chauvin 4 years ago committed by GitHub
parent 26403aecb0
commit 79ee45a02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      server/lib/pushConfig.js

@ -110,7 +110,7 @@ function configurePush() {
apn,
gcm,
production: settings.get('Push_production'),
gateways: settings.get('Push_enable_gateway') === true ? settings.get('Push_gateway').split('\n') : undefined,
gateways: settings.get('Push_enable_gateway') && settings.get('Register_Server') && settings.get('Cloud_Service_Agree_PrivacyTerms') ? settings.get('Push_gateway').split('\n') : undefined,
uniqueId: settings.get('uniqueID'),
getAuthorization() {
return `Bearer ${ getWorkspaceAccessToken() }`;

Loading…
Cancel
Save