fix timeline sorting

This commit is contained in:
Henry Hiles 2026-05-21 12:35:31 -04:00
commit 1834ae2c5b
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -43,7 +43,7 @@ class RoomChatController extends AsyncNotifier<IList<Event>> {
} }
return room.timeline return room.timeline
.toEntryIList(compare: (a, b) => (a?.key ?? 0).compareTo(b?.key ?? 0)) .toEntryIList(compare: (a, b) => (b?.key ?? 0).compareTo(a?.key ?? 0))
.map((entry) { .map((entry) {
if (entry.value == null) return null; if (entry.value == null) return null;