mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +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();
|
final timeline = this.timeline = await room.getTimeline();
|
||||||
timeline.requestKeys();
|
timeline.requestKeys();
|
||||||
var events = timeline.events
|
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();
|
.toList();
|
||||||
|
|
||||||
final hasOutdatedEvents = events.removeOutdatedEvents();
|
final hasOutdatedEvents = events.removeOutdatedEvents();
|
||||||
|
Loading…
Reference in New Issue
Block a user