-
Notifications
You must be signed in to change notification settings - Fork 401
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
fix: App context event handling for channel and membership #362
Conversation
Co-authored-by: Serhii Mamontov <[email protected]>
publishMetaData: { | ||
timetoken: envelope.p.t, |
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.
Is there a reason to rename field? It is alsready inside of publishMetaData
and it doesn't look like that we need to clarify once again that it is publishTimetoken
. Is there other reason for 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.
It was typo before.
In eventEmitter (the same code was there in subscriptionManager before) while creating event information object, this was the way we used to assign.
so instead of changing property name in all places (which may be error prone like we have now with channel/membership) I rename it here in subscription utility method.. same as older endpoint implementation here
in short, It's renaming to make is compatible with old implementation logic in event handling
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 can be refactored other way around than as it's there!
For consistent naming, Renamed property name in old subscribe endpoint definition as well
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.
@parfeon refactored!
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.
LGTM!
@pubnub-release-bot release as v7.6.1 |
🚀 Release successfully completed 🚀 |
fix: app context events handling.
Fixes issue of App context event handling for channel and membership.