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

Fix missing presence events on subscription #419

Merged
merged 7 commits into from
Nov 18, 2024
Merged

Fix missing presence events on subscription #419

merged 7 commits into from
Nov 18, 2024

Conversation

parfeon
Copy link
Contributor

@parfeon parfeon commented Nov 17, 2024

fix(event-engine): fix missing presence events on subscription

Fix issue because of which presence events not delivered to the Subscription and SubscriptionSet objects (only global listeners).

Fix issue because of which presence events not delivered to the `Subscription` and
`SubscriptionSet` objects (only global listeners).
@parfeon parfeon added status: done This issue is considered resolved. priority: medium This PR should be reviewed after all high priority PRs. type: fix This PR contains fixes to existing features. labels Nov 17, 2024
@parfeon parfeon self-assigned this Nov 17, 2024
Copy link
Contributor

@mohitpubnub mohitpubnub left a comment

Choose a reason for hiding this comment

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

LGTM!

this.channelNames.filter((c) => !c.endsWith('-pnpres')),
this.groupNames.filter((cg) => !cg.endsWith('-pnpres')),
);
this.eventEmitter.addListener(listener, this.channelNames, this.groupNames);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏻

return new Subscription({
channels: subscriptionOptions?.receivePresenceEvents ? [this.name, `${this.name}-pnpres`] : [this.name],
channels,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏻

@parfeon
Copy link
Contributor Author

parfeon commented Nov 18, 2024

@pubnub-release-bot release

@parfeon parfeon merged commit cf5aa71 into master Nov 18, 2024
7 checks passed
@parfeon parfeon deleted the CLEN-2359 branch November 18, 2024 14:56
@pubnub-release-bot
Copy link
Contributor

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium This PR should be reviewed after all high priority PRs. status: done This issue is considered resolved. type: fix This PR contains fixes to existing features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants