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.fallback
is now included as a fallback option afterAttachment.title
andAttachment.name
. #4667
✅ Added
- Added a feature flag to
ChatUI
calledshowThreadSeparatorInEmptyThread
. 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
MessageComposerView
via xml attributes. The styling applies both when replying to messages sent by the currently logged-in user, and those sent by other users. #4679streamUiMessageComposerMessageReplyBackgroundColor
streamUiMessageComposerMessageReplyTextSizeMine
streamUiMessageComposerMessageReplyTextColorMine
streamUiMessageComposerMessageReplyTextFontMine
streamUiMessageComposerMessageReplyTextFontAssetsMine
streamUiMessageComposerMessageReplyTextStyleMine
streamUiMessageComposerMessageReplyStrokeColorMine
streamUiMessageComposerMessageReplyStrokeWidthMine
streamUiMessageComposerMessageReplyTextSizeTheirs
streamUiMessageComposerMessageReplyTextColorTheirs
streamUiMessageComposerMessageReplyTextFontTheirs
streamUiMessageComposerMessageReplyTextFontAssetsTheirs
streamUiMessageComposerMessageReplyTextStyleTheirs
streamUiMessageComposerMessageReplyStrokeColorTheirs
streamUiMessageComposerMessageReplyStrokeWidthTheirs
- Added new properties to
MessageComposerViewStyle
which 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. #4679messageReplyBackgroundColor
messageReplyTextStyleMine
messageReplyMessageBackgroundStrokeColorMine
messageReplyMessageBackgroundStrokeWidthMine
messageReplyTextStyleTheirs
messageReplyMessageBackgroundStrokeColorTheirs
messageReplyMessageBackgroundStrokeWidthTheirs
- Added the ability to style the way message reply bubbles are displayed in
MessageInputView
via xml attributes. The styling applies both when replying to messages sent by the currently logged-in user, and those sent by other users. #4679streamUiMessageInputMessageReplyBackgroundColor
streamUiMessageInputMessageReplyTextSizeMine
streamUiMessageInputMessageReplyTextColorMine
streamUiMessageInputMessageReplyTextFontMine
streamUiMessageInputMessageReplyTextFontAssetsMine
streamUiMessageInputMessageReplyTextStyleMine
streamUiMessageInputMessageReplyStrokeColorMine
streamUiMessageInputMessageReplyStrokeWidthMine
streamUiMessageInputMessageReplyTextSizeTheirs
streamUiMessageInputMessageReplyTextColorTheirs
streamUiMessageInputMessageReplyTextFontTheirs
streamUiMessageInputMessageReplyTextFontAssetsTheirs
streamUiMessageInputMessageReplyTextStyleTheirs
streamUiMessageInputMessageReplyStrokeColorTheirs
streamUiMessageInputMessageReplyStrokeWidthTheirs
- Added new properties to
MessageComposerViewStyle
which 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. #4679messageReplyBackgroundColor
messageReplyTextStyleMine
messageReplyMessageBackgroundStrokeColorMine
messageReplyMessageBackgroundStrokeWidthMine
messageReplyTextStyleTheirs
messageReplyMessageBackgroundStrokeColorTheirs
messageReplyMessageBackgroundStrokeWidthTheirs
⚠️ Changed
- The styling for the reply message bubbles visible inside
MessageInputView
andMessageComposerView
when 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.fallback
is now included as a fallback option afterAttachment.title
andAttachment.name
. #4667
✅ Added
- Added the parameter
channelOptions: List<ChannelOptionState>
toSelectedChannelMenu
allowing 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>
toSelectedChannelMenu
allowing users to override the default channel options more easily. The parameter comes with a default argument ofbuildDefaultChannelOptionsState()
. #4671 - Added
currentUser
as a parameter toMessageContent
andMessageText
. These are non-optional, but nullable, parameters that define the behavior and looks of these components. #4672 - Similarly, added
currentUser
as a parameter toQuotedMessage
,QuotedMessageContent
andQuotedMessageText
.
❌ 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.