Skip to content

Releases: sendbird/sendbird-chat-sdk-android

v4.20.0

07 Nov 01:33
e1629a8
Compare
Choose a tag to compare

Features

  • Added new properties in Reaction to support more users
class Reaction {
    // A list of sampled userIds that have reacted to this Reaction.
    val sampledUserIds: List<String>

    // A count of the number of users who have reacted to this.
    var count: Long

    // A flag indicating whether the current user has reacted to this.
    var hasCurrentUserReacted: Boolean
}

v4.19.4

24 Oct 07:20
5659dfd
Compare
Choose a tag to compare

Improvements

  • Improved speed of GroupChannelCollection.loadMore() when the GroupChannelListQuery is set with filters.

v4.19.3

11 Oct 08:23
a5dbe7b
Compare
Choose a tag to compare

Improvements

  • Fixed a crash issue due to lack of proguard rule for PublicSuffixDatabase in the okhttp library.

v4.19.2

26 Sep 11:58
081cd95
Compare
Choose a tag to compare

Improvements

  • Fixed a bug where non-operator's message affects the last message and the unread message count for exclusive channels
  • Fixed a bug where a channel gets unexpectedly unhidden upon receiving a new message.
  • Added useDnsFallback to InitParams which enables a fallback where a second DNS lookup is attempted using a public DNS when the initial lookup using the system DNS fails. Its default value is false.

v4.19.1

12 Sep 11:48
57db57b
Compare
Choose a tag to compare

Improvements

  • Improved speed of MessageCollection.initialize() when there are lots of reply messages in the channel.

v4.19.0

11 Sep 05:03
7d06baa
Compare
Choose a tag to compare

Features

  • Added interfaces for MessageForm to work with Sendbird dashboard and Form interfaces have been deprecated.
    • Added submitMessageForm(CompletionHandler?) method in BaseMessage class
    • Added messageForm property in BaseMessage class
    • Added MessageForm class
    • Added MessageFormItem class
    • Added MessageFormItem.Style class
    • Added MessageFormItem.LayoutType enum
    • Added MessageFormItem.ResultCount enum
    • Deprecated submitForm(Form, CompletionHandler) method in BaseMessage class
    • Deprecated forms property in BaseMessage class
    • Deprecated Form class and interfaces
    • Deprecated FormField class and interfaces
    • Deprecated FormFieldAnswer class and interfaces
  • Added TemplateContainerOptions in TemplateMessageData
  • Added SendbirdChat.getUnreadItemCount(GroupChannelUnreadItemCountParams, GroupChannelGetUnreadItemCountHandler?) method to support filtering unread message count by custom types
    • Added GroupChannelUnreadItemCountParams class
    • Deprecated existing SendbirdChat.getUnreadItemCount(Collection<UnreadItemKey>, GroupChannelGetUnreadItemCountHandler) method

Improvements

  • Fixed an occasional ConcurrentModificationException crash from BaseMessageCollection.getPendingMessages.

v4.18.0

07 Aug 09:29
c1b6774
Compare
Choose a tag to compare

Features

Support pinned message in OpenChannel

  • Added pinnedMessageIds property to BaseChannel
  • Added lastPinnedMessage property to BaseChannel
  • Added pinMessage method to BaseChannel
  • Added unpinMessage method to BaseChannel
  • Added onPinnedMessageUpdated to OpenChannelHandler
  • Expanded SendbirdChat.createPinnedMessageListQuery to use in OpenChannel

v4.17.0-ktx

18 Jul 04:23
df22e28
Compare
Choose a tag to compare

Improvements

  • Replaced all ktx interfaces with either an await prefix or a Flow postfix and deprecated the existing interfaces.

    • This is to prevent issue with auto-import within the IDE where the interface cannot be imported automatically due to the previous interfaces having the same name as the original Chat SDK interfaces.
    /**
    * All `suspend fun` now has an `await` prefix.
    */
    // Previous
    suspend fun SendbirdChat.connect(userId: String, authToken: String? = null, apiHost: String? = null, wsHost: String? = null): AuthUser
    // New
    suspend fun SendbirdChat.awaitConnect(userId: String, authToken: String? = null, apiHost: String? = null, wsHost: String? = null): AuthUser
    
    /**
    * All methods returning a `Flow` now has a `Flow` postfix.
    */
    // Previous
    fun SendbirdChat.init(initParams: InitParams): Flow<InitResult>
    // New
    fun SendbirdChat.initFlow(initParams: InitParams): Flow<InitResult>
  • Added interface for SendbirdPushHelper class

  • Added SendbirdChat.awaitAuthenticate() as a replacement for SendbirdChat.authenticateFeed()

  • Added SendbirdChat.awaitGetTotalUnreadNotificationCount()

v4.17.0

18 Jul 03:40
f457829
Compare
Choose a tag to compare

Features

  • Added SendbirdChat.authenticate() for authentication
    • Deprecated SendbirdChat.authenticateFeed()
  • Added SendbirdChat.getTotalUnreadNotificationCount() to get the total unread notification count of a user

Improvements

  • Added SendbirdPushHelper.registerHandler()
    • Deprecated SendbirdPushHelper.registerPushHandler()
  • Added SendbirdPushHelper.unregisterHandler(Boolean, PushRequestCompleteHandler?)
    • Deprecated SendbirdPushHelper.unregisterPushHandler(PushRequestCompleteHandler?)
    • Deprecated SendbirdPushHelper.unregisterPushHandler(Boolean, PushRequestCompleteHandler?)
  • Added collectionLifecycle in GroupChannelCollection, MessageCollection and NotificationCollection

v4.16.4

05 Jun 09:36
861aaab
Compare
Choose a tag to compare

Improvements

  • Added new properties hasAiBot and hasBot to GroupChannel