github GetStream/stream-chat-android 4.9.0

latest releases: v6.10.0, v6.9.0, v6.8.0...
3 years ago

Common changes for all artifacts

✅ Added

Added icon to show when channel is muted in ChannelListView.
It is possible to customize the color and the drawable of the icon.

stream-chat-android

🐞 Fixed

  • Fixed multiline messages which were displayed in a single line

❌ Removed

  • Removed deprecated MessageListView::setViewHolderFactory method
  • Removed deprecated Chat interface

stream-chat-android-client

🐞 Fixed

  • Fixed: local cached hidden channels stay hidden even though new message is received.
  • Make Flag::approvedAt nullable
  • Fixed error event parsing with new serialization implementation

✅ Added

  • Added ChatClient::updateChannelPartial and ChannelClient::updatePartial methods for partial updates of channel data.

⚠️ Changed

  • Deprecated ChannelClient::unBanUser method
  • Deprecated ChatClient::unBanUser method
  • Deprecated ChatClient::unMuteChannel method

❌ Removed

  • Removed deprecated ChatObservable class and all its uses
  • Removed deprecated ChannelControler interface

stream-chat-android-offline

✅ Added

  • Added the following use case functions to ChatDomain which are supposed to replace ChatDomain.useCases property:
    • ChatDomain::replayEventsForActiveChannels Adds the provided channel to the active channels and replays events for all active channels.
    • ChatDomain::getChannelController Returns a ChannelController for given cid.
    • ChatDomain::watchChannel Watches the given channel and returns a ChannelController.
    • ChatDomain::queryChannels Queries offline storage and the API for channels matching the filter. Returns a queryChannelsController.
    • ChatDomain::getThread Returns a thread controller for the given channel and message id.
    • ChatDomain::loadOlderMessages Loads older messages for the channel.
    • ChatDomain::loadNewerMessages Loads newer messages for the channel.
    • ChatDomain::loadMessageById Loads message for a given message id and channel id.
    • ChatDomain::queryChannelsLoadMore Load more channels for query.
    • ChatDomain::threadLoadMore Loads more messages for the specified thread.
    • ChatDomain::createChannel Creates a new channel.
    • ChatDomain::sendMessage Sends the message.
    • ChatDomain::cancelMessage Cancels the message of "ephemeral" type.
    • ChatDomain::shuffleGiphy Performs giphy shuffle operation.
    • ChatDomain::sendGiphy Sends selected giphy message to the channel.
    • ChatDomain::editMessage Edits the specified message.
    • ChatDomain::deleteMessage Deletes the specified message.
    • ChatDomain::sendReaction Sends the reaction.
    • ChatDomain::deleteReaction Deletes the specified reaction.
    • ChatDomain::keystroke It should be called whenever a user enters text into the message input.
    • ChatDomain::stopTyping It should be called when the user submits the text and finishes typing.
    • ChatDomain::markRead Marks all messages of the specified channel as read.
    • ChatDomain::markAllRead Marks all messages as read.
    • ChatDomain::hideChannel Hides the channel with the specified id.
    • ChatDomain::showChannel Shows a channel that was previously hidden.
    • ChatDomain::leaveChannel Leaves the channel with the specified id.
    • ChatDomain::deleteChannel Deletes the channel with the specified id.
    • ChatDomain::setMessageForReply Set the reply state for the channel.
    • ChatDomain::downloadAttachment Downloads the selected attachment to the "Download" folder in the public external storage directory.
    • ChatDomain::searchUsersByName Perform api request with a search string as autocomplete if in online state. Otherwise performs search by name in local database.
    • ChatDomain::queryMembers Query members of a channel.
  • Added ChatDomain::removeMembers method
  • Added ChatDomain::createDistinctChannel A use-case for creating a channel based on its members.
  • Added ChatDomain::removeMembers method

⚠️ Changed

  • Deprecated ChatDomain.useCases. It has DeprecationLevel.Warning and still can be used. However, it will be not available in the future, so please consider migrating to use ChatDomain use case functions instead.
  • Deprecated GetUnreadChannelCount
  • Deprecated GetTotalUnreadCount

stream-chat-android-ui-common

🐞 Fixed

  • Fixed compatibility with latest Dagger Hilt versions

stream-chat-android-ui-components

🐞 Fixed

  • Fixed not perfectly rounded avatars
  • MessageInputView::UserLookupHandler is not overrided everytime that members livedata is updated
  • Fixed doubled command prefix when the command contains user mention
  • Fixed handling user mute state in default MessageListViewOptions dialog
  • Fixed incorrect "last seen" text
  • Fixed multiline messages which were displayed in a single line

⬆️ Improved

  • Setting external SuggestionListView is no longer necessary to display suggestions popup

✅ Added

  • Added ChatUI.supportedReactions: SupportedReactions property, also introduced SupportedReactions, and ReactionDrawable class.
    It allows defining a set of supported reactions by passing a Map<String, ReactionDrawable> in constructor. ReactionDrawable is a wrapping class holding two Drawable instances - for active and inactive reaction states.
  • Added methods and attrs to MessageListView that allow to customize visibility of message options:
    • MessageListView::setDeleteMessageConfirmationEnabled
    • MessageListView::setCopyMessageEnabled
    • MessageListView::setBlockUserEnabled
    • MessageListView::setMuteUserEnabled
    • MessageListView::setMessageFlagEnabled
    • MessageListView::setReactionsEnabled
    • MessageListView::setRepliesEnabled
    • MessageListView::setThreadsEnabled
    • MessageListView.streamUiFlagMessageOptionEnabled
    • MessageListView.streamUiMuteUserOptionEnabled
    • MessageListView.streamUiBlockUserOptionEnabled
    • MessageListView.streamUiCopyMessageActionEnabled
  • Added confirmation dialog for flagging message option:
    • Added MessageListView::flagMessageConfirmationEnabled attribute
  • Added MessageListView::setFlagMessageResultHandler which allows to handle flag message result
  • Added support for system messages
  • Added attrs to MessageListView that allow to customize system message text style:
    • streamUiSystemMessageTextSize
    • streamUiSystemMessageTextColor
    • streamUiSystemMessageTextFont
    • streamUiSystemMessageTextFontAssets
    • streamUiSystemMessageTextStyle
  • Added attrs to MessageListView that allow to customize message option text style:
    * streamUiMessageOptionsTextSize
    * streamUiMessageOptionsTextColor
    * streamUiMessageOptionsTextFont
    * streamUiMessageOptionsTextFontAssets
    * streamUiMessageOptionsTextStyle
  • Added attrs to MessageListView that allow to customize user reactions title text style:
    * streamUiUserReactionsTitleTextSize
    * streamUiUserReactionsTitleTextColor
    * streamUiUserReactionsTitleTextFont
    * streamUiUserReactionsTitleTextFontAssets
    * streamUiUserReactionsTitleTextStyle
  • Added attrs to MessageListView that allow to customize colors of message options background, user reactions card background, overlay dim color and warning actions color:
    * streamUiMessageOptionBackgroundColor
    * streamUiUserReactionsBackgroundColor
    * streamUiOptionsOverlayDimColor
    * streamUiWarningActionsTintColor
  • Added ChatUI.mimeTypeIconProvider: MimeTypeIconProvider property which allows to customize file attachment icons.

⚠️ Changed

  • Now the "block user" feature is disabled. We're planning to improve the feature later. Stay tuned!
  • Changed gallery background to black in dark mode

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

NewReleases is sending notifications on new releases.