Skip to content

Commit

Permalink
Merge pull request #1082 from GetStream/hotfix/userReconnectionBug
Browse files Browse the repository at this point in the history
fix(llc): fix reconnection
  • Loading branch information
imtoori authored Apr 14, 2022
2 parents 7aa4c4d + 8a438ea commit ccbd6cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/stream_chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_chat/lib/src/ws/websocket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit ccbd6cb

Please sign in to comment.