From 924632a5a82a5e808483b4e506304006b64c9955 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 8 Jul 2024 14:12:17 +0200 Subject: [PATCH] fixed user parsing leading to incorrect online presence --- packages/stream_chat/lib/src/client/client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }),