We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 948128d commit e2d4729Copy full SHA for e2d4729
packages/stream_chat/lib/src/client/channel.dart
@@ -2951,13 +2951,8 @@ class ChannelClientState {
2951
);
2952
}
2953
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
+ int _sortByCreatedAt(Message a, Message b) =>
+ a.createdAt.compareTo(b.createdAt);
2961
2962
/// The channel state related to this client.
2963
ChannelState get _channelState => _channelStateController.value;
0 commit comments