mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
fix: Dont display own failed-to-send events in stories
This commit is contained in:
parent
4a6447f730
commit
4de03b2d5d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user