Skip to content

Conversation

jguz-pubnub
Copy link
Contributor

fix: Internal fixes

@jguz-pubnub jguz-pubnub changed the title Handle missing ReceivePresenceEvents options in channel group subscription Handle missing ReceivePresenceEvents options in channel group subscription (Apple platforms) Jul 1, 2025
override fun subscription(options: SubscriptionOptions): Subscription {
// TODO: Add support for handling SubscriptionOptions
return SubscriptionImpl(objCSubscription = KMPSubscription(entity = channelGroup))
val presenceOptions = options.allOptions.filterIsInstance<ReceivePresenceEventsImpl>()
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to add tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see there are tests for a channel/channel group entity in this repository:

https://github.com/pubnub/kotlin/blob/master/pubnub-kotlin/pubnub-kotlin-impl/src/integrationTest/kotlin/com/pubnub/api/integration/SubscribeIntegrationTests.kt

However, by default, they are only executed on the jvm target. We would need to replicate the same effort here as was done in the KMP chat project

override val name: String
get() = jsChannelGroup.name

override fun subscription(options: SubscriptionOptions): Subscription { // todo use options
Copy link
Contributor

Choose a reason for hiding this comment

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

Is todo comment up to date ?

Copy link
Contributor Author

@jguz-pubnub jguz-pubnub Jul 2, 2025

Choose a reason for hiding this comment

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

I think so, because there's no support for FilterImpl options

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. I was misled because I saw options being used in code below. Maybe todo comment could be modified with more precise info?

@jguz-pubnub jguz-pubnub changed the title Handle missing ReceivePresenceEvents options in channel group subscription (Apple platforms) Handle missing ReceivePresenceEvents options in channel group subscription Jul 2, 2025
override val name: String
get() = jsChannelGroup.name

override fun subscription(options: SubscriptionOptions): Subscription { // todo use options
Copy link
Contributor

Choose a reason for hiding this comment

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

I see. I was misled because I saw options being used in code below. Maybe todo comment could be modified with more precise info?

@jguz-pubnub jguz-pubnub changed the title Handle missing ReceivePresenceEvents options in channel group subscription Add missing implementation for ChannelGroup entity (Apple and JS platforms) Jul 3, 2025
@jguz-pubnub
Copy link
Contributor Author

@pubnub-release-bot release kotlin as v10.5.3

@jguz-pubnub jguz-pubnub merged commit e52924c into master Jul 3, 2025
7 checks passed
@jguz-pubnub jguz-pubnub deleted the fix/apple-channel-group-entity branch July 3, 2025 12:15
@pubnub-release-bot
Copy link
Contributor

🛑 Build failed. Please check release build for details 🛑

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants