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
🐞 Fixed
@@ -121,7 +121,8 @@ class WebSocket with TimerHelper {
_logger?.info('Closing connection with $baseUrl');
if (_webSocketChannel != null) {
_unsubscribeFromWebSocketChannel();
_webSocketChannel?.sink.close(status.goingAway);
_webSocketChannel?.sink
.close(_manuallyClosed ? status.normalClosure : status.goingAway);
_webSocketChannel = null;
}
}
+21 -15
View File
@@ -1,3 +1,9 @@
## Upcoming
🐞 Fixed
- Fixed adding attachments on web.
## 3.2.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`
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.
@@ -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
upgraded with some goodies like `lerp` functions. Here's the full naming breakdown:
* `AvatarTheme` is now `AvatarThemeData`
* `ChannelHeaderTheme` is now `ChannelHeaderThemeData`
* `ChannelListHeaderTheme` is now `ChannelListHeaderThemeData`
* `ChannelListViewTheme` is now `ChannelListViewThemeData`
* `ChannelPreviewTheme` is now `ChannelPreviewThemeData`
* `MessageInputTheme` is now `MessageInputThemeData`
* `MessageListViewTheme` is now `MessageListViewTheme`
* `MessageSearchListViewTheme` is now `MessageSearchListViewThemeData`
* `MessageTheme` is now `MessageThemeData`
* `UserListViewTheme` is now `UserListViewThemeData`
- `AvatarTheme` is now `AvatarThemeData`
- `ChannelHeaderTheme` is now `ChannelHeaderThemeData`
- `ChannelListHeaderTheme` is now `ChannelListHeaderThemeData`
- `ChannelListViewTheme` is now `ChannelListViewThemeData`
- `ChannelPreviewTheme` is now `ChannelPreviewThemeData`
- `MessageInputTheme` is now `MessageInputThemeData`
- `MessageListViewTheme` is now `MessageListViewTheme`
- `MessageSearchListViewTheme` is now `MessageSearchListViewThemeData`
- `MessageTheme` is now `MessageThemeData`
- `UserListViewTheme` is now `UserListViewThemeData`
- Updated core dependency.
* Updated core dependency.
🐞 Fixed
@@ -202,6 +208,7 @@ upgraded with some goodies like `lerp` functions. Here's the full naming breakdo
- Renamed `ChannelImage` to `ChannelAvatar`
- Updated `StreamChatThemeData.reactionIcons` to accept custom builder
- Renamed `ColorTheme` properties to reflect the purpose of the colors
- `ColorTheme.black` -> `ColorTheme.textHighEmphasis`
- `ColorTheme.grey` -> `ColorTheme.textLowEmphasis`
- `ColorTheme.greyGainsboro` -> `ColorTheme.disabled`
@@ -234,8 +241,7 @@ typedef MessageBuilder = Widget Function(
```
> **_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
@@ -301,7 +307,7 @@ typedef MessageBuilder = Widget Function(
```
> **_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