mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-26 08:02:34 +01:00
fix: Hide redacted stories
This commit is contained in:
parent
85c1710ae3
commit
5c3b9be9c1
@ -294,6 +294,7 @@ class StoryPageController extends State<StoryPage> {
|
|||||||
future: event.redactEvent,
|
future: event.redactEvent,
|
||||||
);
|
);
|
||||||
setState(() {
|
setState(() {
|
||||||
|
events.remove(event);
|
||||||
_modalOpened = false;
|
_modalOpened = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -395,8 +396,9 @@ 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 =
|
var events = timeline.events
|
||||||
timeline.events.where((e) => e.type == EventTypes.Message).toList();
|
.where((e) => e.type == EventTypes.Message && !e.redacted)
|
||||||
|
.toList();
|
||||||
|
|
||||||
final hasOutdatedEvents = events.removeOutdatedEvents();
|
final hasOutdatedEvents = events.removeOutdatedEvents();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user