Merge pull request #1537 from PhantomRay/PhantomRay-patch-1

fix: fixed hardcoded historyCount
This commit is contained in:
Krille-chan 2023-10-20 12:05:18 +02:00 committed by GitHub
commit 3c237f4984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class Timeline {
: await room.client.database?.getEventList( : await room.client.database?.getEventList(
room, room,
start: events.length, start: events.length,
limit: Room.defaultHistoryCount, limit: historyCount,
); );
if (eventsFromStore != null && eventsFromStore.isNotEmpty) { if (eventsFromStore != null && eventsFromStore.isNotEmpty) {