Skip to content

Commit

Permalink
Add missing streamMessageReports method in JS
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Feb 3, 2025
1 parent eeb86b9 commit 73fee26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pubnub-chat-impl/src/jsMain/kotlin/ChannelJs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ open class ChannelJs internal constructor(internal val channel: Channel, interna
}.asPromise()
}

fun streamMessageReports(callback: (EventJs) -> Unit): () -> Unit =
channel.streamMessageReports { event ->
callback(event.toJs(chatJs))
}::close

@Deprecated("Only for internal MessageDraft V1 use")
fun getUserSuggestions(text: String, options: GetSuggestionsParams?): Promise<Array<MembershipJs>> {
val limit = options?.limit
Expand Down

0 comments on commit 73fee26

Please sign in to comment.