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 = '';
if (timeline.events.isNotEmpty) {
final filteredEvents = timeline.getFilteredEvents(unfolded: unfolded);
if (filteredEvents.isEmpty) return '';
final lastReceipts = <User>{};
// now we iterate the timeline events until we hit the first rendered event
for (final event in timeline.events) {