fix: Dont display own failed-to-send events in stories

This commit is contained in:
Christian Pauly 2022-04-11 06:59:15 +02:00
parent 4a6447f730
commit 4de03b2d5d

View File

@ -401,7 +401,10 @@ class StoryPageController extends State<StoryPage> {
final timeline = this.timeline = await room.getTimeline();
timeline.requestKeys();
var events = timeline.events
.where((e) => e.type == EventTypes.Message && !e.redacted)
.where((e) =>
e.type == EventTypes.Message &&
!e.redacted &&
e.status == EventStatus.synced)
.toList();
final hasOutdatedEvents = events.removeOutdatedEvents();