mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 16:51:24 +01:00
implement global account_data filtering in /sync
TODO docs on raw_event_allowed, and figure out how we want to organize it with CompiledRoomEventFilter::raw_event_allowed
This commit is contained in:
parent
c3cf97df7a
commit
7a0b8c986f
2 changed files with 37 additions and 0 deletions
|
|
@ -346,6 +346,9 @@ pub(crate) async fn sync_events_route(
|
|||
})
|
||||
.ok()
|
||||
})
|
||||
.filter(|event| {
|
||||
compiled_filter.account_data.raw_event_allowed(event)
|
||||
})
|
||||
.collect(),
|
||||
},
|
||||
device_lists: DeviceLists {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue