Merge branch 'fix/web-att-ws' into fix-web-attachments

This commit is contained in:
geweald
2021-11-15 11:25:03 +01:00
3 changed files with 112 additions and 99 deletions
+6
View File
@@ -1,3 +1,9 @@
## Upcoming
🐞 Fixed
- `closeConnection()` now uses `normalClosure` status when closing websocket.
## 3.2.0 ## 3.2.0
🐞 Fixed 🐞 Fixed
@@ -121,7 +121,8 @@ class WebSocket with TimerHelper {
_logger?.info('Closing connection with $baseUrl'); _logger?.info('Closing connection with $baseUrl');
if (_webSocketChannel != null) { if (_webSocketChannel != null) {
_unsubscribeFromWebSocketChannel(); _unsubscribeFromWebSocketChannel();
_webSocketChannel?.sink.close(status.goingAway); _webSocketChannel?.sink
.close(_manuallyClosed ? status.normalClosure : status.goingAway);
_webSocketChannel = null; _webSocketChannel = null;
} }
} }
+21 -15
View File
@@ -1,3 +1,9 @@
## Upcoming
🐞 Fixed
- Fixed adding attachments on web.
## 3.2.0 ## 3.2.0
- Updated Dart SDK constraints to `>=2.14.0 <3.0.0` - Updated Dart SDK constraints to `>=2.14.0 <3.0.0`
@@ -135,7 +141,7 @@ typedef ActionButtonBuilder = Widget Function(
``` ```
> **_NOTE:_** The last parameter is the default `ActionButton` > **_NOTE:_** The last parameter is the default `ActionButton`
You can call `.copyWith` to customize just a subset of properties. > You can call `.copyWith` to customize just a subset of properties.
- Added slow mode which allows a cooldown period after a user sends a message. - Added slow mode which allows a cooldown period after a user sends a message.
@@ -144,18 +150,18 @@ You can call `.copyWith` to customize just a subset of properties.
Theming has been upgraded! Most theme classes now have `InheritedTheme` classes associated with them, and have been Theming has been upgraded! Most theme classes now have `InheritedTheme` classes associated with them, and have been
upgraded with some goodies like `lerp` functions. Here's the full naming breakdown: upgraded with some goodies like `lerp` functions. Here's the full naming breakdown:
* `AvatarTheme` is now `AvatarThemeData` - `AvatarTheme` is now `AvatarThemeData`
* `ChannelHeaderTheme` is now `ChannelHeaderThemeData` - `ChannelHeaderTheme` is now `ChannelHeaderThemeData`
* `ChannelListHeaderTheme` is now `ChannelListHeaderThemeData` - `ChannelListHeaderTheme` is now `ChannelListHeaderThemeData`
* `ChannelListViewTheme` is now `ChannelListViewThemeData` - `ChannelListViewTheme` is now `ChannelListViewThemeData`
* `ChannelPreviewTheme` is now `ChannelPreviewThemeData` - `ChannelPreviewTheme` is now `ChannelPreviewThemeData`
* `MessageInputTheme` is now `MessageInputThemeData` - `MessageInputTheme` is now `MessageInputThemeData`
* `MessageListViewTheme` is now `MessageListViewTheme` - `MessageListViewTheme` is now `MessageListViewTheme`
* `MessageSearchListViewTheme` is now `MessageSearchListViewThemeData` - `MessageSearchListViewTheme` is now `MessageSearchListViewThemeData`
* `MessageTheme` is now `MessageThemeData` - `MessageTheme` is now `MessageThemeData`
* `UserListViewTheme` is now `UserListViewThemeData` - `UserListViewTheme` is now `UserListViewThemeData`
- Updated core dependency. * Updated core dependency.
🐞 Fixed 🐞 Fixed
@@ -202,6 +208,7 @@ upgraded with some goodies like `lerp` functions. Here's the full naming breakdo
- Renamed `ChannelImage` to `ChannelAvatar` - Renamed `ChannelImage` to `ChannelAvatar`
- Updated `StreamChatThemeData.reactionIcons` to accept custom builder - Updated `StreamChatThemeData.reactionIcons` to accept custom builder
- Renamed `ColorTheme` properties to reflect the purpose of the colors - Renamed `ColorTheme` properties to reflect the purpose of the colors
- `ColorTheme.black` -> `ColorTheme.textHighEmphasis` - `ColorTheme.black` -> `ColorTheme.textHighEmphasis`
- `ColorTheme.grey` -> `ColorTheme.textLowEmphasis` - `ColorTheme.grey` -> `ColorTheme.textLowEmphasis`
- `ColorTheme.greyGainsboro` -> `ColorTheme.disabled` - `ColorTheme.greyGainsboro` -> `ColorTheme.disabled`
@@ -234,8 +241,7 @@ typedef MessageBuilder = Widget Function(
``` ```
> **_NOTE:_** the last parameter is the default `MessageWidget` > **_NOTE:_** the last parameter is the default `MessageWidget`
You can call `.copyWith` to customize just a subset of properties > You can call `.copyWith` to customize just a subset of properties
✅ Added ✅ Added
@@ -301,7 +307,7 @@ typedef MessageBuilder = Widget Function(
``` ```
> **_NOTE:_** The last parameter is the default `MessageWidget` > **_NOTE:_** The last parameter is the default `MessageWidget`
You can call `.copyWith` to customize just a subset of properties. > You can call `.copyWith` to customize just a subset of properties.
✅ Added ✅ Added