Skip to content

Commit 7e90727

Browse files
committed
Updated swift dependency
1 parent a70cd8c commit 7e90727

File tree

1 file changed

+3
-3
lines changed
  • pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/endpoints/presence

1 file changed

+3
-3
lines changed

pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/endpoints/presence/HereNow.ios.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import com.pubnub.kmp.onFailureHandler
1515
import com.pubnub.kmp.onSuccessHandler
1616
import com.pubnub.kmp.safeCast
1717
import kotlinx.cinterop.ExperimentalForeignApi
18+
import platform.Foundation.NSNumber
1819

1920
/**
2021
* @see [PubNub.hereNow]
@@ -37,9 +38,8 @@ class HereNowImpl(
3738
channelGroups = channelGroups,
3839
includeState = includeState,
3940
includeUUIDs = includeUUIDs,
40-
// todo pass limit and offset once available
41-
// limit = limit,
42-
// offset = offset,
41+
limit = limit.toLong(),
42+
offset = offset?.let { NSNumber(it) },
4343
onSuccess = callback.onSuccessHandler {
4444
PNHereNowResult(
4545
totalChannels = it?.totalChannels()?.toInt() ?: 0,

0 commit comments

Comments
 (0)