Apply suggestions from code review

Co-authored-by: Gordon <[email protected]>
This commit is contained in:
Salvatore Giordano
2022-02-03 11:33:10 +01:00
committed by GitHub
co-authored by Gordon
parent 9f01ab925f
commit 5580fc2ba1
4 changed files with 8 additions and 6 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
- [[#857]](https://github.com/GetStream/stream-chat-flutter/issues/857) Channel now listens for member ban/unban and
updates the channel state with the latest data.
- [[#748]](https://github.com/GetStream/stream-chat-flutter/issues/748) `Message.user` are now also included while saving users in persistence.
- [[#748]](https://github.com/GetStream/stream-chat-flutter/issues/748) `Message.user` is now also included while saving users in persistence.
- [[#871]](https://github.com/GetStream/stream-chat-flutter/issues/871) Fixed thread message deletion.
- [[#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
@@ -15,8 +15,8 @@
- `client.location` is now deprecated in favor of the
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` and will be removed in v4.0.0.
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
- Added `client.enrichUrl` endpoint for enriching URLs with metadata.
@@ -1299,7 +1299,7 @@ class Channel {
}
/// Bans the user with given [userID] from the channel.
@Deprecated("Use 'banMember' instead")
@Deprecated("Use 'banMember' instead. This method will be removed in v4.0.0")
Future<EmptyResponse> banUser(
String userID,
Map<String, dynamic> options,
@@ -1321,7 +1321,7 @@ class Channel {
}
/// Remove the ban for the user with given [userID] in the channel.
@Deprecated("Use 'unbanMember' instead")
@Deprecated("Use 'unbanMember' instead. This method will be removed in v4.0.0")
Future<EmptyResponse> unbanUser(String userID) => unbanMember(userID);
/// Remove the ban for the member with given [userID] in the channel.
+2 -1
View File
@@ -1,4 +1,5 @@
## 3.4.0
- Updated `stream_chat_flutter_core` dependency to [`3.4.0`](https://pub.dev/packages/stream_chat_flutter_core/changelog).
🐞 Fixed
@@ -8,7 +9,7 @@
✅ Added
- Videos can now be auto-played in `FullScreenMedia`
- Videos can now be auto-played in `FullScreenMedia`, by setting the `autoplayVideos` argument to true.
## 3.3.2
@@ -1,4 +1,5 @@
## 3.4.0
- Updated `stream_chat` dependency to [`3.4.0`](https://pub.dev/packages/stream_chat/changelog).
🐞 Fixed