fix: Crash on timeline

This commit is contained in:
Christian Pauly 2021-07-23 09:13:24 +02:00
parent d6ed0fe9c1
commit a206f23ad4

View File

@ -72,6 +72,7 @@ extension RoomStatusExtension on Room {
var seenByText = ''; var seenByText = '';
if (timeline.events.isNotEmpty) { if (timeline.events.isNotEmpty) {
final filteredEvents = timeline.getFilteredEvents(unfolded: unfolded); final filteredEvents = timeline.getFilteredEvents(unfolded: unfolded);
if (filteredEvents.isEmpty) return '';
final lastReceipts = <User>{}; final lastReceipts = <User>{};
// now we iterate the timeline events until we hit the first rendered event // now we iterate the timeline events until we hit the first rendered event
for (final event in timeline.events) { for (final event in timeline.events) {