Skip to content

Commit e2d4729

Browse files
committed
chore: revert createdAt comparator
1 parent 948128d commit e2d4729

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/stream_chat/lib/src/client/channel.dart

+2-7
Original file line numberDiff line numberDiff line change
@@ -2951,13 +2951,8 @@ class ChannelClientState {
29512951
);
29522952
}
29532953

2954-
int _sortByCreatedAt(Message a, Message b) {
2955-
if (a.remoteCreatedAt != null && b.remoteCreatedAt != null) {
2956-
return a.remoteCreatedAt!.compareTo(b.remoteCreatedAt!);
2957-
}
2958-
2959-
return a.createdAt.compareTo(b.createdAt);
2960-
}
2954+
int _sortByCreatedAt(Message a, Message b) =>
2955+
a.createdAt.compareTo(b.createdAt);
29612956

29622957
/// The channel state related to this client.
29632958
ChannelState get _channelState => _channelStateController.value;

0 commit comments

Comments
 (0)