-
Notifications
You must be signed in to change notification settings - Fork 13k
chore: remove node-gcm library and features due to deprecation
#35143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
126c87e
589f4f8
f4d781f
cde5661
5d806bb
b4c8f6e
4915806
8031110
b200646
890b086
dd1a95e
b63fa31
3c7d871
99f55a5
b249875
51eafde
29e10aa
6c34599
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@rocket.chat/meteor': patch | ||
| --- | ||
|
|
||
| Switches from GCM (unsupported) to FCM as the default push notification service for custom mobile apps |
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,8 +19,10 @@ export const createPushSettings = () => | |||||||||
| alert: 'Push_Setting_Requires_Restart_Alert', | ||||||||||
| }); | ||||||||||
|
|
||||||||||
| // TODO: Push_UseLegacy should be removed in 8.0.0, as well as Push_gcm_project_number and Push_gcm_api_key | ||||||||||
| await this.add('Push_UseLegacy', false, { | ||||||||||
| type: 'boolean', | ||||||||||
| hidden: true, | ||||||||||
| alert: 'Push_Setting_Legacy_Warning', | ||||||||||
| }); | ||||||||||
|
|
||||||||||
|
|
@@ -109,6 +111,7 @@ export const createPushSettings = () => | |||||||||
| }); | ||||||||||
| await this.add('Push_gcm_api_key', '', { | ||||||||||
| type: 'string', | ||||||||||
| hidden: true, | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. both this setting and Rocket.Chat/apps/meteor/server/lib/pushConfig.ts Lines 99 to 102 in 4915806
I suppose that part of the code should be refactored since this will be always empty from now on.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Gustrb seems like we're no longer using this part of the code since we don't use these settings. Should the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey, it looks like they are not being used and could be removed, but since we check for the key's existence to see if we should call fcm or apn, I think we could keep it here (maybe empty object?) and we can remove it later on a larger refactoring.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a TODO comment and removed |
||||||||||
| enableQuery: [ | ||||||||||
| { | ||||||||||
| _id: 'Push_UseLegacy', | ||||||||||
|
|
@@ -132,7 +135,7 @@ export const createPushSettings = () => | |||||||||
|
|
||||||||||
| return this.add('Push_gcm_project_number', '', { | ||||||||||
| type: 'string', | ||||||||||
| public: true, | ||||||||||
| hidden: true, | ||||||||||
| enableQuery: [ | ||||||||||
| { | ||||||||||
| _id: 'Push_UseLegacy', | ||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.