Skip to content
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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

shubhsherl
Copy link

@shubhsherl shubhsherl commented Apr 12, 2020

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

// Notifications.streamUser.__emit(data._id, clientAction, data);
Notifications.notifyUserInThisInstance(
id,
'ownUser-changed',
Copy link
Member

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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?

Copy link
Contributor

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

@engelgabriel
Copy link
Member

We are getting ready to merge this one.

@engelgabriel engelgabriel added this to the 4.0.0 milestone Sep 23, 2020
@CLAassistant
Copy link

CLAassistant commented Dec 17, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants