fix: Another type error when combining lists
This commit is contained in:
parent
a7537462a4
commit
2afd7040a7
|
|
@ -428,10 +428,11 @@ class MatrixSdkDatabase extends DatabaseApi {
|
||||||
// Combine those two lists while respecting the start and limit parameters.
|
// Combine those two lists while respecting the start and limit parameters.
|
||||||
final end = min(timelineEventIds.length,
|
final end = min(timelineEventIds.length,
|
||||||
start + (limit ?? timelineEventIds.length));
|
start + (limit ?? timelineEventIds.length));
|
||||||
final eventIds = sendingEventIds +
|
final eventIds = [
|
||||||
(start < timelineEventIds.length && !onlySending
|
...sendingEventIds,
|
||||||
? timelineEventIds.getRange(start, end).toList()
|
if (!onlySending && start < timelineEventIds.length)
|
||||||
: []);
|
...timelineEventIds.getRange(start, end),
|
||||||
|
];
|
||||||
|
|
||||||
return await _getEventsByIds(eventIds.cast<String>(), room);
|
return await _getEventsByIds(eventIds.cast<String>(), room);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue