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:
Benjamin Lee 2024-05-21 14:04:53 -07:00
parent c3cf97df7a
commit 7a0b8c986f
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4
2 changed files with 37 additions and 0 deletions

View file

@ -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 {