From 40bd3a46242effe361fdeb99f96e3aa25f035804 Mon Sep 17 00:00:00 2001 From: "sha.sdk_deployment" Date: Fri, 30 Aug 2024 01:11:27 +0000 Subject: [PATCH] Added v3.20.1 --- CHANGELOG.md | 13 +++++++++++++ gradle.properties | 2 +- .../model/notifications/NotificationTemplate.kt | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37ac077b..0ad0ba13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,17 @@ # Changelog +### v3.20.1 (Aug 30, 2024) with Chat SDK `v4.18.0` +* Added support for EmojiCategory. You can now filter emojis for different messages when adding Reactions to a message. + * New Interfaces + ```kotlin + class BaseMessageListAdapter { + fun getEmojiCategories(message: BaseMessage): List? { + return null + } + } + ``` + * Note: You need to set your custom EmojiCategory using [Sendbird Platform API](https://sendbird.com/docs/chat/platform-api/v3/message/reactions-and-emojis/reactions-and-emojis-overview) in advance. +* Fixed a crash in the new version due to new fields not having default value. + ### v3.20.0 (Aug 29, 2024) with Chat SDK `v4.18.0` * Added support for EmojiCategory. You can now filter emojis for different messages when adding Reactions to a message. * New Interfaces diff --git a/gradle.properties b/gradle.properties index 2db2749a..ee17e4c5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,5 +22,5 @@ android.nonTransitiveRClass=false android.nonFinalResIds=false android.enableR8.fullMode=false -UIKIT_VERSION = 3.20.0 +UIKIT_VERSION = 3.20.1 UIKIT_VERSION_CODE = 1 diff --git a/uikit/src/main/java/com/sendbird/uikit/internal/model/notifications/NotificationTemplate.kt b/uikit/src/main/java/com/sendbird/uikit/internal/model/notifications/NotificationTemplate.kt index 06394a5c..b610a136 100644 --- a/uikit/src/main/java/com/sendbird/uikit/internal/model/notifications/NotificationTemplate.kt +++ b/uikit/src/main/java/com/sendbird/uikit/internal/model/notifications/NotificationTemplate.kt @@ -33,7 +33,7 @@ internal data class NotificationTemplate constructor( private val _uiTemplate: String, @SerialName(KeySet.data_template) @Serializable(with = JsonElementToStringSerializer::class) - private val _dataTemplate: String, + private val _dataTemplate: String = "{}", // for backward compatibility. [since 3.20.1] @SerialName(KeySet.color_variables) private val _colorVariables: Map ) {