From 1723a0691a803064f25378eda6aa556767b677a6 Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Sun, 9 Aug 2026 23:13:54 +0200 Subject: [PATCH] fix: timeline pagination --- lib/controllers/room_chat.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/controllers/room_chat.dart b/lib/controllers/room_chat.dart index 98a3fd9..75ce7d8 100644 --- a/lib/controllers/room_chat.dart +++ b/lib/controllers/room_chat.dart @@ -37,8 +37,7 @@ class RoomChatController extends AsyncNotifier?> { room = ref.read(RoomsController.provider)[roomId] ?? room; } - // While there are under 20 events, try to load more - // until there's no more or the conditions are met. + // Load one more page when the initial timeline is short. if (room.hasMore && room.timeline.length < 20) { await loadOlder(); room = ref.read(RoomsController.provider)[roomId] ?? room;