diff --git a/packages/stream_chat/CHANGELOG.md b/packages/stream_chat/CHANGELOG.md index 9e9b27624..3f7e1fe8c 100644 --- a/packages/stream_chat/CHANGELOG.md +++ b/packages/stream_chat/CHANGELOG.md @@ -1,3 +1,9 @@ +## Upcoming + +🐞 Fixed + +- Fixed incorrect user object and online presence when user is updated. + ## 7.3.0 🔄 Changed diff --git a/packages/stream_chat/lib/src/client/client.dart b/packages/stream_chat/lib/src/client/client.dart index 0d4770664..43d082f4f 100644 --- a/packages/stream_chat/lib/src/client/client.dart +++ b/packages/stream_chat/lib/src/client/client.dart @@ -1633,7 +1633,7 @@ class ClientState { _eventsSubscription?.add( _client.on(EventType.userUpdated).listen((event) { if (event.user!.id == currentUser!.id) { - currentUser = OwnUser.fromJson(event.user!.toJson()); + currentUser = OwnUser.fromUser(event.user!); } updateUser(event.user); }),