Skip to content

Commit

Permalink
fixed user parsing leading to incorrect online presence
Browse files Browse the repository at this point in the history
  • Loading branch information
deven98 committed Jul 8, 2024
1 parent f0b162f commit 924632a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stream_chat/lib/src/client/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}),
Expand Down

0 comments on commit 924632a

Please sign in to comment.