mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 10:04:06 -04:00
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:
parent
8b63fe4c26
commit
d1523aed6b
2 changed files with 46 additions and 35 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue