mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-06 20:19:30 +01:00
fix: Crash on timeline
This commit is contained in:
parent
d6ed0fe9c1
commit
a206f23ad4
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user