-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
[PWA] Add Service worker and ownUser Cache #17269
base: develop
Are you sure you want to change the base?
Conversation
Improve SW Logic DOn't refetch fonts
fix lint issues Use localforage in SW and add localforage.min.js
// Notifications.streamUser.__emit(data._id, clientAction, data); | ||
Notifications.notifyUserInThisInstance( | ||
id, | ||
'ownUser-changed', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be a security issue, anyone can subscribe to any user id and receives private data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should stream to a particular user be used rather than notifying all users subscribed to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it to stream to a particular user only
Modified own user emit mechanism
We are getting ready to merge this one. |
This is the first PR to integrate PWA functionality in RC.
https://github.com/WideChat/Rocket.Chat/wiki/PWA-features
First PR: #17269
Second PR: #17367
Third PR: #17441
Fourth PR: #17493