From b315d38289ee81e393dbaf799f7161e40972559f Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 3 Feb 2022 11:44:07 +0100 Subject: [PATCH] fix changelog --- packages/stream_chat/CHANGELOG.md | 5 +++-- packages/stream_chat/lib/src/client/channel.dart | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/stream_chat/CHANGELOG.md b/packages/stream_chat/CHANGELOG.md index d38bedd7..b911776f 100644 --- a/packages/stream_chat/CHANGELOG.md +++ b/packages/stream_chat/CHANGELOG.md @@ -9,6 +9,7 @@ - [[#846]](https://github.com/GetStream/stream-chat-flutter/issues/846) Fixed `message.ownReactions` getting truncated when receiving a reaction event. - Add check for invalid image URLs - Fix `channelState.pinnedMessagesStream` getting reset to `0` after a channel update. +- Fixed `unreadCount` after removing user from a channel. 🔄 Changed @@ -16,11 +17,11 @@ new [edge server](https://getstream.io/blog/chat-edge-infrastructure) and will be removed in v4.0.0. - `channel.banUser`, `channel.unbanUser` is now deprecated in favor of the new `channel.banMember` and `channel.unbanMember`. These deprecated methods will be removed in v4.0.0. -- Added banExpires property of type DateTime on the Member, OwnUser, and User models. +- Added `banExpires` property of type `DateTime` on the `Member`, `OwnUser`, and `User` models. + ✅ Added - Added `client.enrichUrl` endpoint for enriching URLs with metadata. -- Fixed `unreadCount` after removing user from a channel. - Added `client.queryBannedUsers`, `channel.queryBannedUsers` endpoint for querying banned users. ## 3.3.1 diff --git a/packages/stream_chat/lib/src/client/channel.dart b/packages/stream_chat/lib/src/client/channel.dart index 80366624..d3900842 100644 --- a/packages/stream_chat/lib/src/client/channel.dart +++ b/packages/stream_chat/lib/src/client/channel.dart @@ -1321,7 +1321,8 @@ class Channel { } /// Remove the ban for the user with given [userID] in the channel. - @Deprecated("Use 'unbanMember' instead. This method will be removed in v4.0.0") + @Deprecated( + "Use 'unbanMember' instead. This method will be removed in v4.0.0") Future unbanUser(String userID) => unbanMember(userID); /// Remove the ban for the member with given [userID] in the channel.