mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 22:00:22 +00:00
It's a simplification, but one that'll help make the user directory logic easier to follow with the other changes upcoming. It's not strictly required for those changes, but this will help simplify the resulting logic that listens for `m.room.member` events and generally make the logic easier to follow. This means the config option `search_all_users` ends up controlling the search query only, and not the data we store. The cost of doing so is an extra row in the `user_directory` and `user_directory_search` tables for each local user which - belongs to no public rooms - belongs to no private rooms of size ≥ 2 I think the cost of this will be marginal (since they'll already have entries in `users` and `profiles` anyway). As a small upside, a homeserver whose directory was built with this change can toggle `search_all_users` without having to rebuild their directory. Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> |
||
---|---|---|
.. | ||
__init__.py | ||
test_account.py | ||
test_auth.py | ||
test_capabilities.py | ||
test_consent.py | ||
test_directory.py | ||
test_ephemeral_message.py | ||
test_events.py | ||
test_filter.py | ||
test_groups.py | ||
test_identity.py | ||
test_keys.py | ||
test_login.py | ||
test_password_policy.py | ||
test_power_levels.py | ||
test_presence.py | ||
test_profile.py | ||
test_push_rule_attrs.py | ||
test_redactions.py | ||
test_register.py | ||
test_relations.py | ||
test_report_event.py | ||
test_retention.py | ||
test_rooms.py | ||
test_sendtodevice.py | ||
test_shadow_banned.py | ||
test_shared_rooms.py | ||
test_sync.py | ||
test_third_party_rules.py | ||
test_transactions.py | ||
test_typing.py | ||
test_upgrade_room.py | ||
utils.py |