github GetStream/stream-chat-android 4.22.0

latest releases: 6.24.0, 6.23.0, 6.22.1...
3 years ago

🚨 Old UI Module Deprecation

stream-chat-android module will be deprecated by the end of December 2021. The module will continue working, but we won't be releasing new versions.
Consider migrating to stream-chat-android-ui-components or stream-chat-android-compose. Here you can find a set of useful resources for migration:

November 11th, 2021 - 4.22.0

Common changes for all artifacts

⬆️ Improved

  • Bumped the SDKs target API to 31
  • Updated WorkManager to version 2.7.0, which fixes compatibility issues with SDK 31

✅ Added

  • Added Indonesian 🇮🇩 translations.
  • Added onErrorSuspend extension for Result to allow executing suspending lambda function for handing error response.

stream-chat-android

✅ Added

  • Added ChannelListItemAdapter::getChannels() for getting a list of channels

stream-chat-android-client

✅ Added

  • Added NotificationConfig::shouldShowNotificationOnPush that allows enabling/disabling showing notification after receiving a push message

⚠️ Changed

  • NotificationConfig::pushNotificationsEnabled is now disabled by default if you don't provide custom NotificationConfig - our SDK won't create a NotificationChannel if push notifications are not configured

stream-chat-android-offline

🐞 Fixed

  • Fixed inserting messages with empty Message::cid

✅ Added

  • Added new extension function ChatCliet::requestMembers to query members without ChatDomain.
  • Added new extension function ChatCliet::searchUsersByName.

⚠️ Changed

  • 🚨 Breaking change: RetryPolicy in ChatDomain is now immutable and can only be set with Builder before creating an instance of it.
  • 🚨 Breaking change: ChannelEventsHandler is renamed to ChatEventHandler, it's function is renamed from onChannelEvent to handleChatEvent, EventHandlingResult is sealed class now. To get more details read our docs

stream-chat-android-ui-components

🐞 Fixed

  • Fixed bug when showing messages with pending attachments that cause loading state to be not shown in some cases.
  • Fixed clearing MessageInputView after dismissing message to edit
  • Fixed support for videos from other SDKs
  • Fixed downloading attachments with some special characters in their names

⬆️ Improved

  • Improved Korean 🇰🇷 translation related to the flagging.
  • 🚨 Breaking change: Now the button for sending message in MessageInputView sizes itself accordingly with the drawable used, instead of having a predefined size (32dp)
  • Improved KDocs for MessageListFragment.

✅ Added

  • You can now use MessageListView.backgroundDrawable to have more flexibility to customize your message items background. Be aware that setting backgroundDrawable will override the background configurations of xml.
  • Added streamUiEditInputModeIcon and streamUiReplyInputModeIcon attributes to MessageInputView.
    Use them to customize icon in the MessageInputView's top left corner displayed when user edits or replies to the message.
  • Added setMessageInputModeListener, setSendMessageButtonEnabledDrawable and setSendMessageButtonDisabledDrawable method to MessageInputView.
    They can be used together for changing send button icon based on current input mode. See docs for more details.
  • Added static methods createIntent and newInstance those doesn't have default parameters on MessageListActivity and MessageListFragment for supporting Java side.

stream-chat-android-compose

🐞 Fixed

  • Fixed channel options that are displayed in the ChannelInfo component.

⬆️ Improved

  • Improved the icon set and polished the UI for various Messages features
  • Improved the set of customization options for the DefaultChannelItem
  • Updated documentation for Channels set of features
  • Now it is possible to search for distinct channels by member names using ChannelListViewModel.
  • Improved the design of ChannelInfo bottom sheet dialog.

✅ Added

  • Added a new parameter to the AttachmentFactory called previewContent that represents attachments within the MessageInput
  • Added the leadingContent, detailsContent, trailingContent and divider Slot APIs for the DefaultChannelItem
  • Added StreamDimens option to the ChatTheme, to allow for dimension customization across the app.
  • Added localization support for the components related the channel list.
  • Added the emptySearchContent parameter to ChannelList component that allows to customize the empty placeholder, when there are no channels matching the search query.
  • Added support for the muted channel indicator in the message list.
  • Added ChannelNameFormatter option to the ChatTheme, to allow for channel name format customization across the app.
  • Added the textFormatter field to AttachmentFactory, to allow for attachment text format customization.
  • Added MessagePreviewFormatter option to the ChatTheme, to allow for message preview text format customization across the app.
  • Added the leadingContent, headerContent, footerContent, trailingContent and content Slot APIs for the DefaultMessageItem
  • Added channelInfoUserItemWidth, channelInfoUserItemHorizontalPadding and channelInfoUserItemAvatarSize options to StreamDimens, to make it possible to customize the dimensions inside the ChannelInfo component via ChatTheme.
  • Added ownMessagesBackground, otherMessagesBackground and deletedMessagesBackgroundColor options to StreamColors, to make it possible to customize the message bubble color via ChatTheme.

⚠️ Changed

  • The AttachmentFactory now requires an additional parameter - previewContent that's used to preview the attachment within the MessageInput, so please be aware of this!
  • Renamed ChannelOption.icon property to ChannelOption.iconPainter and changed the property type from ImageVector to Painter.
  • Changed the type of the ChannelListViewModel.selectedChannel field to MutableState<Channel?>.

Don't miss a new stream-chat-android release

NewReleases is sending notifications on new releases.