Skip to content

Commit 45b70ee

Browse files
rickypidriccardocucia
andauthored
Fixed updateRoomList sorting (#17)
Co-authored-by: riccardocucia <[email protected]>
1 parent 11bd88f commit 45b70ee

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.3.1] - 2024-11-12
2+
#### [@rickypid](https://github.com/rickypid)
3+
4+
### Fixed
5+
6+
* Fixed `updateRoomList` sorting
7+
18
## [1.3.0] - 2024-11-04
29
#### [@rickypid](https://github.com/rickypid)
310

doc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flutter-supabase-chat-core",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: example
22
description: A new Flutter project.
33
publish_to: 'none'
44

5-
version: 1.3.0
5+
version: 1.3.1
66

77
environment:
88
sdk: '>=3.4.0 <4.0.0'

lib/src/class/supabase_chat_core.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ class SupabaseChatCore {
388388
}
389389
}
390390
rooms.sort(
391-
(a, b) => b.createdAt?.compareTo(a.createdAt ?? 0) ?? -1,
391+
(a, b) => b.updatedAt?.compareTo(a.updatedAt ?? 0) ?? -1,
392392
);
393393
return rooms;
394394
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flutter_supabase_chat_core
22
description: >
33
Actively maintained, community-driven Supabase BaaS for chat applications
44
with an optional chat UI.
5-
version: 1.3.0
5+
version: 1.3.1
66
homepage: https://flutter-supabase-chat-core.insideapp.it
77
repository: https://github.com/insideapp-srl/flutter_supabase_chat_core
88

0 commit comments

Comments
 (0)