mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 10:29:22 -05:00
Only filter if a filter was provided
This commit is contained in:
parent
f141af4c79
commit
cb2cbe4d26
@ -875,10 +875,12 @@ class RoomContextHandler(object):
|
||||
room_id, event_id, before_limit, after_limit, event_filter
|
||||
)
|
||||
|
||||
filtered_before_events = event_filter.filter(results["events_before"])
|
||||
results["events_before"] = yield filter_evts(filtered_before_events)
|
||||
filtered_after_events = event_filter.filter(results["events_after"])
|
||||
results["events_after"] = yield filter_evts(filtered_after_events)
|
||||
if event_filter:
|
||||
results["events_before"] = event_filter.filter(results["events_before"])
|
||||
results["events_after"] = event_filter.filter(results["events_after"])
|
||||
|
||||
results["events_before"] = yield filter_evts(results["events_before"])
|
||||
results["events_after"] = yield filter_evts(results["events_after"])
|
||||
results["event"] = event
|
||||
|
||||
if results["events_after"]:
|
||||
|
Loading…
Reference in New Issue
Block a user