mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 14:32:37 +01:00
Merge branch 'krille/redacted-stories' into 'main'
fix: Hide redacted stories See merge request famedly/fluffychat!774
This commit is contained in:
commit
b75c994950
@ -294,6 +294,7 @@ class StoryPageController extends State<StoryPage> {
|
||||
future: event.redactEvent,
|
||||
);
|
||||
setState(() {
|
||||
events.remove(event);
|
||||
_modalOpened = false;
|
||||
});
|
||||
}
|
||||
@ -395,8 +396,9 @@ class StoryPageController extends State<StoryPage> {
|
||||
}
|
||||
final timeline = this.timeline = await room.getTimeline();
|
||||
timeline.requestKeys();
|
||||
var events =
|
||||
timeline.events.where((e) => e.type == EventTypes.Message).toList();
|
||||
var events = timeline.events
|
||||
.where((e) => e.type == EventTypes.Message && !e.redacted)
|
||||
.toList();
|
||||
|
||||
final hasOutdatedEvents = events.removeOutdatedEvents();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user