implement per-event filtering for search

This commit is contained in:
Benjamin Lee 2024-06-04 19:28:18 -07:00
parent d2fab35868
commit 2e6a5f30cb
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4

View file

@ -110,6 +110,7 @@ pub(crate) async fn search_events_route(
.timeline
.get_pdu_from_id(result)
.ok()?
.filter(|pdu| compiled_filter.pdu_event_allowed(pdu))
.filter(|pdu| {
services()
.rooms