Common changes for all artifacts
🐞 Fixed
- Fixed channel list sorting
⬆️ Improved
- Updated to Kotlin 1.5.10, coroutines 1.5.0
- Updated to Android Gradle Plugin 4.2.1
- Updated Room version to 2.3.0
- Updated Firebase, AndroidX, and other dependency versions to latest, see here for more details
- Marked many library interfaces that should not be implemented by clients as sealed
- Removed Fresco, PhotoDraweeView, and FrescoImageViewer dependencies (replaced by StfalconImageViewer)
stream-chat-android
🐞 Fixed
- Fixing filter for draft channels. Those channels were not showing in the results, even when the user asked for them. Now this is fixed and the draft channels can be included in the
ChannelsView
. - Fixed link preview UI issues in old-ui package
- Fixed crashes when opening the image gallery.
stream-chat-android-client
🐞 Fixed
- Fixed querying banned users using new serialization.
- Fixed the bug when wrong credentials lead to inability to login
- Fixed issues with Proguard stripping response classes in new serialization implementation incorrectly
⬆️ Improved
- Improved handling push notifications:
- Added
ChatClient.handleRemoteMessage
for remote message handling - Added
ChatClient.setFirebaseToken
for setting Firebase token - Added
NotificationConfig::pushNotificationsEnabled
for disabling push notifications - Deprecated
ChatClient.onMessageReceived
- Deprecated
ChatClient.onNewTokenReceived
- Changed
ChatNotificationHandler::buildNotification
signature - it now receivesChannel
andMessage
and returnsNotificationCompat.Builder
for better customization - Deprecated
ChatNotificationHandler.getSmallIcon
- Deprecated
ChatNotificationHandler.getFirebaseMessageIdKey
- Deprecated
ChatNotificationHandler.getFirebaseChannelIdKey
- Deprecated
ChatNotificationHandler.getFirebaseChannelTypeKey
- Changed
ChatNotificationHandler::onChatEvent
- it now doesn't handle events by default and receivesNewMessageEvent
instead of genericChatEvent
- Added
- Improved error description provided by
ChatClient::sendImage
,ChatClient::sendFile
,ChannelClient::sendImage
andChannelClient::sendFile
methods if upload fails.
✅ Added
- Added
ChatClient::truncateChannel
andChannelClient::truncate
methods to remove messages from a channel. - Added
DisconnectCause
toDisconnectedEvent
- Added method
SocketListener::onDisconnected(cause: DisconnectCause)
- Added possibility to group notifications:
- Notifications grouping is disabled by default and can be enabled using
NotificationConfig::shouldGroupNotifications
- If enabled, by default notifications are grouped by Channel's cid
- Notifications grouping can be configured using
ChatNotificationHandler
andNotificationConfig
- Notifications grouping is disabled by default and can be enabled using
- Added
ChatNotificationHandler::getFirebaseMessaging()
method in place ofChatNotificationHandler::getFirebaseInstanceId()
.It should be used now to fetch Firebase token in the following way:handler.getFirebaseMessaging()?.token?.addOnCompleteListener {...}
. - Added
Message.attachmentsSyncStatus: SyncStatus
property.
⚠️ Changed
- Changed the return type of
FileUploader
methods from nullable string toResult<String>
. - Updated
firebase-messaging
library to the version22.0.0
. Removed deprecatedFirebaseInstanceId
invocations from the project.
❌ Removed
ChatNotificationHandler::getFirebaseInstanceId()
due toFirebaseInstanceId
being deprecated. It's replaced now withChatNotificationHandler::getFirebaseMessaging()
.
stream-chat-android-ui-components
🐞 Fixed
Fixing filter for draft channels. Those channels were not showing in the results, even when the user asked for them. Now this is fixed and the draft channels can be included in the ChannelListView
.
Fixed bug when for some video attachments activity with media player wasn't shown.
✅ Added
- Added
topLeft
,topRight
,bottomLeft
,bottomRight
options to thestreamUiAvatarOnlineIndicatorPosition
attribute ofAvatarView
and corresponding constants toAvatarView.OnlineIndicatorPosition
enum.
⚠️ Changed
- Swipe options of
ChannelListView
component:- "Channel more" option is now not shown by default because we are not able to provide generic, default implementation for it.
If you want to make this option visible, you need to setapp:streamUiChannelOptionsEnabled="true"
explicitly toio.getstream.chat.android.ui.channel.list.ChannelListView
component. - "Channel delete" option has now default implementation. Clicking on the "delete" icon shows AlertDialog asking to confirm Channel deletion operation.
- "Channel more" option is now not shown by default because we are not able to provide generic, default implementation for it.