mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
implement per-event filtering for search
This commit is contained in:
parent
d2fab35868
commit
2e6a5f30cb
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue