From 6556ed6d587ab0178c0b4b95243b94c4f89834da Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 14 Apr 2022 09:39:47 +0200 Subject: [PATCH 1/3] fix(llc): fix reconnection --- packages/stream_chat/lib/src/ws/websocket.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stream_chat/lib/src/ws/websocket.dart b/packages/stream_chat/lib/src/ws/websocket.dart index de5475ce7..a26bd1f6c 100644 --- a/packages/stream_chat/lib/src/ws/websocket.dart +++ b/packages/stream_chat/lib/src/ws/websocket.dart @@ -155,7 +155,7 @@ class WebSocket with TimerHelper { final token = await tokenManager.loadToken(refresh: refreshToken); final params = { 'user_id': user.id, - if (includeUserDetails) 'user_details': user, + 'user_details': includeUserDetails ? user : {'id': user.id}, 'user_token': token.rawValue, 'server_determines_connection_id': true, }; From 8a438ea321b3f116e28f4586892ffabff18ff072 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 14 Apr 2022 09:41:05 +0200 Subject: [PATCH 2/3] chore(llc): update changelog --- packages/stream_chat/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/stream_chat/CHANGELOG.md b/packages/stream_chat/CHANGELOG.md index 6112155e6..7dbc4a947 100644 --- a/packages/stream_chat/CHANGELOG.md +++ b/packages/stream_chat/CHANGELOG.md @@ -1,3 +1,8 @@ +## Upcoming + +🐞 Fixed +- [[#1081]](https://github.com/GetStream/stream-chat-flutter/issues/1081) Fixed a bug with user reconnection. + ## 3.6.0 🐞 Fixed From e5b768078ba3825cd61d22dd5970d6cbb718f3bd Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 14 Apr 2022 09:50:50 +0200 Subject: [PATCH 3/3] chore(llc,core,ui): update pubspec and changelogs --- packages/stream_chat/CHANGELOG.md | 3 ++- packages/stream_chat/lib/version.dart | 2 +- packages/stream_chat/pubspec.yaml | 2 +- packages/stream_chat_flutter/CHANGELOG.md | 5 +++++ packages/stream_chat_flutter/pubspec.yaml | 4 ++-- packages/stream_chat_flutter_core/CHANGELOG.md | 4 ++++ packages/stream_chat_flutter_core/pubspec.yaml | 4 ++-- 7 files changed, 17 insertions(+), 7 deletions(-) diff --git a/packages/stream_chat/CHANGELOG.md b/packages/stream_chat/CHANGELOG.md index 7dbc4a947..f0707cdb3 100644 --- a/packages/stream_chat/CHANGELOG.md +++ b/packages/stream_chat/CHANGELOG.md @@ -1,6 +1,7 @@ -## Upcoming +## 3.6.1 🐞 Fixed + - [[#1081]](https://github.com/GetStream/stream-chat-flutter/issues/1081) Fixed a bug with user reconnection. ## 3.6.0 diff --git a/packages/stream_chat/lib/version.dart b/packages/stream_chat/lib/version.dart index 02af74d78..cc2c6eb98 100644 --- a/packages/stream_chat/lib/version.dart +++ b/packages/stream_chat/lib/version.dart @@ -3,4 +3,4 @@ import 'package:stream_chat/src/client/client.dart'; /// Current package version /// Used in [StreamChatClient] to build the `x-stream-client` header // ignore: constant_identifier_names -const PACKAGE_VERSION = '3.6.0'; +const PACKAGE_VERSION = '3.6.1'; diff --git a/packages/stream_chat/pubspec.yaml b/packages/stream_chat/pubspec.yaml index d21862960..c57051950 100644 --- a/packages/stream_chat/pubspec.yaml +++ b/packages/stream_chat/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat homepage: https://getstream.io/ description: The official Dart client for Stream Chat, a service for building chat applications. -version: 3.6.0 +version: 3.6.1 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues diff --git a/packages/stream_chat_flutter/CHANGELOG.md b/packages/stream_chat_flutter/CHANGELOG.md index 581cac388..5d3d1406b 100644 --- a/packages/stream_chat_flutter/CHANGELOG.md +++ b/packages/stream_chat_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.6.1 + +- Updated `stream_chat_flutter_core` dependency to [`3.6.1`](https://pub.dev/packages/stream_chat_flutter_core/changelog). + ## 3.6.0 🐞 Fixed @@ -29,6 +33,7 @@ - Fix default `Channel` route not opening from `ChannelListView` when `ChannelAvatar` is tapped ## 3.4.0 + - Updated `stream_chat_flutter_core` dependency to [`3.4.0`](https://pub.dev/packages/stream_chat_flutter_core/changelog). 🐞 Fixed diff --git a/packages/stream_chat_flutter/pubspec.yaml b/packages/stream_chat_flutter/pubspec.yaml index f785a8ac6..4ebc8f9e2 100644 --- a/packages/stream_chat_flutter/pubspec.yaml +++ b/packages/stream_chat_flutter/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_flutter homepage: https://github.com/GetStream/stream-chat-flutter description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter. -version: 3.6.0 +version: 3.6.1 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues @@ -36,7 +36,7 @@ dependencies: rxdart: ^0.27.0 share_plus: ^4.0.1 shimmer: ^2.0.0 - stream_chat_flutter_core: ^3.6.0 + stream_chat_flutter_core: ^3.6.1 substring_highlight: ^1.0.26 synchronized: ^3.0.0 url_launcher: ^6.0.3 diff --git a/packages/stream_chat_flutter_core/CHANGELOG.md b/packages/stream_chat_flutter_core/CHANGELOG.md index d48909ccb..a2a2c4d8d 100644 --- a/packages/stream_chat_flutter_core/CHANGELOG.md +++ b/packages/stream_chat_flutter_core/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.6.1 + +- Updated `stream_chat` dependency to [`3.6.1`](https://pub.dev/packages/stream_chat/changelog). + ## 3.6.0 - Updated `stream_chat` dependency to [`3.6.0`](https://pub.dev/packages/stream_chat/changelog). diff --git a/packages/stream_chat_flutter_core/pubspec.yaml b/packages/stream_chat_flutter_core/pubspec.yaml index e6df141fc..25acb90af 100644 --- a/packages/stream_chat_flutter_core/pubspec.yaml +++ b/packages/stream_chat_flutter_core/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_flutter_core homepage: https://github.com/GetStream/stream-chat-flutter description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter. -version: 3.6.0 +version: 3.6.1 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues @@ -16,7 +16,7 @@ dependencies: sdk: flutter meta: ^1.3.0 rxdart: ^0.27.0 - stream_chat: ^3.6.0 + stream_chat: ^3.6.1 dev_dependencies: dart_code_metrics: ^4.4.0