Skip to content

Commit

Permalink
fix chat & push libs compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kanat committed Oct 3, 2023
1 parent 1986d48 commit 1808640
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ turbine = "0.13.0"

streamWebRTC = "1.0.6"
streamResult = "1.1.0"
streamChat = "6.0.2"
streamChat = "6.0.4"
streamLog = "1.1.4"
streamPush = "1.1.1"
streamPush = "1.1.4"

androidxTest = "1.5.2"
androidxTestCore = "1.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@ internal class VideoPushDelegate(
/**
* Handle a push message.
*
* @param metadata The metadata of the Push Notification.
* @param payload The content of the Push Notification.
* @return true if the payload was handled properly.
*/
override fun handlePushMessage(payload: Map<String, Any?>): Boolean {
logger.d { "[handlePushMessage] payload: $payload" }
override fun handlePushMessage(
metadata: Map<String, Any?>,
payload: Map<String, Any?>
): Boolean {
logger.d { "[handlePushMessage] payload: $payload, metadata: $metadata" }
return payload.ifValid {
val callId = (payload[KEY_CALL_CID] as String).toTypeAndId()
.let { StreamCallId(it.first, it.second) }
Expand Down

0 comments on commit 1808640

Please sign in to comment.