Skip to content

Commit c103e1c

Browse files
Merge pull request #42 from sendbird/release/3.20.1
3.20.1
2 parents c49f473 + 40bd3a4 commit c103e1c

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
# Changelog
2+
### v3.20.1 (Aug 30, 2024) with Chat SDK `v4.18.0`
3+
* Added support for EmojiCategory. You can now filter emojis for different messages when adding Reactions to a message.
4+
* New Interfaces
5+
```kotlin
6+
class BaseMessageListAdapter {
7+
fun getEmojiCategories(message: BaseMessage): List<Long>? {
8+
return null
9+
}
10+
}
11+
```
12+
* 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.
13+
* Fixed a crash in the new version due to new fields not having default value.
14+
215
### v3.20.0 (Aug 29, 2024) with Chat SDK `v4.18.0`
316
* Added support for EmojiCategory. You can now filter emojis for different messages when adding Reactions to a message.
417
* New Interfaces

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ android.nonTransitiveRClass=false
2222
android.nonFinalResIds=false
2323
android.enableR8.fullMode=false
2424

25-
UIKIT_VERSION = 3.20.0
25+
UIKIT_VERSION = 3.20.1
2626
UIKIT_VERSION_CODE = 1

uikit/src/main/java/com/sendbird/uikit/internal/model/notifications/NotificationTemplate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal data class NotificationTemplate constructor(
3333
private val _uiTemplate: String,
3434
@SerialName(KeySet.data_template)
3535
@Serializable(with = JsonElementToStringSerializer::class)
36-
private val _dataTemplate: String,
36+
private val _dataTemplate: String = "{}", // for backward compatibility. [since 3.20.1]
3737
@SerialName(KeySet.color_variables)
3838
private val _colorVariables: Map<String, String>
3939
) {

0 commit comments

Comments
 (0)