mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 19:40:20 +00:00
Comment
This commit is contained in:
parent
7bdc5c8fa3
commit
a0e8a53c6d
1 changed files with 8 additions and 0 deletions
|
@ -460,6 +460,14 @@ class FederationHandler(BaseHandler):
|
||||||
@measure_func("_filter_events_for_server")
|
@measure_func("_filter_events_for_server")
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _filter_events_for_server(self, server_name, room_id, events):
|
def _filter_events_for_server(self, server_name, room_id, events):
|
||||||
|
"""Filter the given events for the given server, redacting those the
|
||||||
|
server can't see.
|
||||||
|
|
||||||
|
Assumes the server is currently in the room.
|
||||||
|
|
||||||
|
Returns
|
||||||
|
list[FrozenEvent]
|
||||||
|
"""
|
||||||
# First lets check to see if all the events have a history visibility
|
# First lets check to see if all the events have a history visibility
|
||||||
# of "shared" or "world_readable". If thats the case then we don't
|
# of "shared" or "world_readable". If thats the case then we don't
|
||||||
# need to check membership (as we know the server is in the room).
|
# need to check membership (as we know the server is in the room).
|
||||||
|
|
Loading…
Reference in a new issue