stream-chat-android-ui-components
🐞 Fixed
- Fixed image scaling when width is bigger than height. #4659
- Fixed date separator handlers not being applied when calling
MessageListViewModel.setDateSeparatorHandler()andMessageListViewModel.setThreadDateSeparatorHandler(). #4681
⬆️ Improved
- When creating message previews,
Attachment.fallbackis now included as a fallback option afterAttachment.titleandAttachment.name. #4667
✅ Added
- Added a feature flag to
ChatUIcalledshowThreadSeparatorInEmptyThread. You can use this to enable a thread separator if the thread is empty. #4629 - Added the method
showModeratedMessageDialog()toMessageListView. It is used to display a dialog when long clicking on a message that has failed a moderation check. #4645 - Added the ability to style the way message reply bubbles are displayed in
MessageComposerViewvia xml attributes. The styling applies both when replying to messages sent by the currently logged-in user, and those sent by other users. #4679streamUiMessageComposerMessageReplyBackgroundColorstreamUiMessageComposerMessageReplyTextSizeMinestreamUiMessageComposerMessageReplyTextColorMinestreamUiMessageComposerMessageReplyTextFontMinestreamUiMessageComposerMessageReplyTextFontAssetsMinestreamUiMessageComposerMessageReplyTextStyleMinestreamUiMessageComposerMessageReplyStrokeColorMinestreamUiMessageComposerMessageReplyStrokeWidthMinestreamUiMessageComposerMessageReplyTextSizeTheirsstreamUiMessageComposerMessageReplyTextColorTheirsstreamUiMessageComposerMessageReplyTextFontTheirsstreamUiMessageComposerMessageReplyTextFontAssetsTheirsstreamUiMessageComposerMessageReplyTextStyleTheirsstreamUiMessageComposerMessageReplyStrokeColorTheirsstreamUiMessageComposerMessageReplyStrokeWidthTheirs
- Added new properties to
MessageComposerViewStylewhich allow styling the way message reply bubbles are displayed inMessageComposerView. The styling applies both when replying to messages sent by the currently logged-in user, and those sent by other users. #4679messageReplyBackgroundColormessageReplyTextStyleMinemessageReplyMessageBackgroundStrokeColorMinemessageReplyMessageBackgroundStrokeWidthMinemessageReplyTextStyleTheirsmessageReplyMessageBackgroundStrokeColorTheirsmessageReplyMessageBackgroundStrokeWidthTheirs
- Added the ability to style the way message reply bubbles are displayed in
MessageInputViewvia xml attributes. The styling applies both when replying to messages sent by the currently logged-in user, and those sent by other users. #4679streamUiMessageInputMessageReplyBackgroundColorstreamUiMessageInputMessageReplyTextSizeMinestreamUiMessageInputMessageReplyTextColorMinestreamUiMessageInputMessageReplyTextFontMinestreamUiMessageInputMessageReplyTextFontAssetsMinestreamUiMessageInputMessageReplyTextStyleMinestreamUiMessageInputMessageReplyStrokeColorMinestreamUiMessageInputMessageReplyStrokeWidthMinestreamUiMessageInputMessageReplyTextSizeTheirsstreamUiMessageInputMessageReplyTextColorTheirsstreamUiMessageInputMessageReplyTextFontTheirsstreamUiMessageInputMessageReplyTextFontAssetsTheirsstreamUiMessageInputMessageReplyTextStyleTheirsstreamUiMessageInputMessageReplyStrokeColorTheirsstreamUiMessageInputMessageReplyStrokeWidthTheirs
- Added new properties to
MessageComposerViewStylewhich allow styling the way message reply bubbles are displayed inMessageInputView. The styling applies both when replying to messages sent by the currently logged-in user, and those sent by other users. #4679messageReplyBackgroundColormessageReplyTextStyleMinemessageReplyMessageBackgroundStrokeColorMinemessageReplyMessageBackgroundStrokeWidthMinemessageReplyTextStyleTheirsmessageReplyMessageBackgroundStrokeColorTheirsmessageReplyMessageBackgroundStrokeWidthTheirs
⚠️ Changed
- The styling for the reply message bubbles visible inside
MessageInputViewandMessageComposerViewwhen replying to messages has changed slightly and is now the same for both messages sent by the currently logged-in user and those sent by other users. However, you are now able to style the bubbles. For more information check the added section forstream-chat-android-ui-components. #4679
stream-chat-android-compose
🐞 Fixed
- Fixed Compose Previews for ChatTheme and other minor components like
MessageText. #4672
⬆️ Improved
- When creating message previews,
Attachment.fallbackis now included as a fallback option afterAttachment.titleandAttachment.name. #4667
✅ Added
- Added the parameter
channelOptions: List<ChannelOptionState>toSelectedChannelMenuallowing users to override the default channel options more easily. The parameter comes with a default argument ofbuildDefaultChannelOptionsState(). #4671
⚠️ Changed
- Added the parameter
channelOptions: List<ChannelOptionState>toSelectedChannelMenuallowing users to override the default channel options more easily. The parameter comes with a default argument ofbuildDefaultChannelOptionsState(). #4671 - Added
currentUseras a parameter toMessageContentandMessageText. These are non-optional, but nullable, parameters that define the behavior and looks of these components. #4672 - Similarly, added
currentUseras a parameter toQuotedMessage,QuotedMessageContentandQuotedMessageText.
❌ Removed
The following items are breaking changes, since it was very important to improve/fix the behavior. The items described were used to expose customizable permission handlers which can be reused. However, this API is experimental and breaking for Previews, so we chose to go down a different path.