Only check history visibility when filtering

When filtering events to send to server we check more than just history
visibility. However when deciding whether to backfill or not we only
care about the history visibility.
This commit is contained in:
Erik Johnston 2019-03-04 14:34:34 +00:00
parent 8b63fe4c26
commit d1523aed6b
2 changed files with 46 additions and 35 deletions

View file

@ -891,9 +891,11 @@ class FederationHandler(BaseHandler):
get_prev_content=False,
)
# We set `check_history_visibility_only` as we might otherwise get false
# positives from users having been erased.
filtered_extremities = yield filter_events_for_server(
self.store, self.server_name, list(extremities_events.values()),
redact=False,
redact=False, check_history_visibility_only=True,
)
if not filtered_extremities: