Skip to content

Commit 229df5c

Browse files
Mohit TejaniMohit Tejani
authored andcommitted
refactor: remove filter for presence channels from subscriptionChanged status event in re-subscribe scenario
1 parent 9dd1ebf commit 229df5c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dist/web/pubnub.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9599,8 +9599,8 @@
95999599
// Manually emit SubscriptionChanged status event
96009600
this.dependencies.emitStatus({
96019601
category: StatusCategory$1.PNSubscriptionChangedCategory,
9602-
affectedChannels: Array.from(new Set(this.channels.filter((c) => !c.endsWith('-pnpres')))),
9603-
affectedChannelGroups: Array.from(new Set(this.groups.filter((g) => !g.endsWith('-pnpres')))),
9602+
affectedChannels: Array.from(new Set(this.channels)),
9603+
affectedChannelGroups: Array.from(new Set(this.groups)),
96049604
currentTimetoken,
96059605
});
96069606
}

dist/web/pubnub.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/event-engine/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ class EventEngine {
125125
// Manually emit SubscriptionChanged status event
126126
this.dependencies.emitStatus({
127127
category: categories_1.default.PNSubscriptionChangedCategory,
128-
affectedChannels: Array.from(new Set(this.channels.filter((c) => !c.endsWith('-pnpres')))),
129-
affectedChannelGroups: Array.from(new Set(this.groups.filter((g) => !g.endsWith('-pnpres')))),
128+
affectedChannels: Array.from(new Set(this.channels)),
129+
affectedChannelGroups: Array.from(new Set(this.groups)),
130130
currentTimetoken,
131131
});
132132
}

src/event-engine/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export class EventEngine {
128128
// Manually emit SubscriptionChanged status event
129129
this.dependencies.emitStatus({
130130
category: categoryConstants.PNSubscriptionChangedCategory,
131-
affectedChannels: Array.from(new Set(this.channels.filter((c) => !c.endsWith('-pnpres')))),
132-
affectedChannelGroups: Array.from(new Set(this.groups.filter((g) => !g.endsWith('-pnpres')))),
131+
affectedChannels: Array.from(new Set(this.channels)),
132+
affectedChannelGroups: Array.from(new Set(this.groups)),
133133
currentTimetoken,
134134
});
135135
}

0 commit comments

Comments
 (0)