mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:26:02 -04:00
Run filter_events_for_client
so we don't accidentally mail out events people shouldn't see
This commit is contained in:
parent
4ed1e45869
commit
424a7f48f8
7 changed files with 24 additions and 20 deletions
|
@ -681,7 +681,7 @@ class SyncHandler(BaseHandler):
|
|||
|
||||
if recents is not None:
|
||||
recents = sync_config.filter_collection.filter_room_timeline(recents)
|
||||
recents = yield self._filter_events_for_client(
|
||||
recents = yield self.filter_events_for_client(
|
||||
sync_config.user.to_string(),
|
||||
recents,
|
||||
)
|
||||
|
@ -702,7 +702,7 @@ class SyncHandler(BaseHandler):
|
|||
loaded_recents = sync_config.filter_collection.filter_room_timeline(
|
||||
events
|
||||
)
|
||||
loaded_recents = yield self._filter_events_for_client(
|
||||
loaded_recents = yield self.filter_events_for_client(
|
||||
sync_config.user.to_string(),
|
||||
loaded_recents,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue