anonymousland-synapse/synapse/config
David Robertson 60453315bd
Always add local users to the user directory (#10796)
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>
2021-09-21 12:02:34 +00:00
..
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
__main__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Allow using several custom template directories (#10587) 2021-08-17 10:23:14 +00:00
_base.pyi Add support for evicting cache entries based on last access time. (#10205) 2021-07-05 16:32:12 +01:00
_util.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account_validity.py Add a warning when using deprecated template_dir settings (#10768) 2021-09-06 16:23:50 +02:00
api.py Send the m.room.create stripped event with invites (support MSC1772). (#9966) 2021-05-11 10:58:58 -04:00
appservice.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
auth.py Fix copy-paste error in the password section of the sample-config. (#10804) 2021-09-13 08:58:34 -04:00
cache.py Make sync response cache time configurable. (#10513) 2021-08-03 14:45:04 +01:00
captcha.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
cas.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
consent.py Update links to documentation in sample config (#10287) 2021-07-07 12:35:45 +01:00
database.py Allow setting transaction limit for db connections (#10440) 2021-08-02 13:24:43 +00:00
emailconfig.py Add a warning when using deprecated template_dir settings (#10768) 2021-09-06 16:23:50 +02:00
experimental.py Remove unstable MSC2858 API, including experimental.msc2858_enabled config option (#10693) 2021-09-09 17:59:59 +01:00
federation.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
groups.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
homeserver.py Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
jwt.py Update links to documentation in sample config (#10287) 2021-07-07 12:35:45 +01:00
key.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
logger.py Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -04:00
metrics.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
modules.py Update links to documentation in sample config (#10287) 2021-07-07 12:35:45 +01:00
oembed.py Request JSON for oEmbed requests (and ignore XML only providers). (#10759) 2021-09-08 07:17:52 -04:00
oidc.py Remove unstable MSC2858 API, including experimental.msc2858_enabled config option (#10693) 2021-09-09 17:59:59 +01:00
password_auth_providers.py Require type hints in the handlers module. (#10831) 2021-09-20 08:56:23 -04:00
push.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
ratelimiting.py Add types to synapse.util. (#10601) 2021-09-10 17:03:18 +01:00
redis.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
registration.py Implement MSC3231: Token authenticated registration (#10142) 2021-08-21 22:14:43 +01:00
repository.py Add warnings to ip_range_blacklist usage with proxies (#10129) 2021-08-03 18:13:34 +00:00
room_directory.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
room.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
saml2.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
server_notices.py Rename handler and config modules which end in handler/config. (#9816) 2021-04-20 14:55:20 -04:00
server.py Add config option to use non-default manhole password and keys (#10643) 2021-09-06 16:08:03 +01:00
spam_checker.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
sso.py Add a warning when using deprecated template_dir settings (#10768) 2021-09-06 16:23:50 +02:00
stats.py Remove functionality associated with unused historical stats tables (#9721) 2021-07-08 16:57:13 +01:00
third_party_event_rules.py Port the ThirdPartyEventRules module interface to the new generic interface (#10386) 2021-07-20 12:39:46 +02:00
tls.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00
tracer.py Update links to documentation in sample config (#10287) 2021-07-07 12:35:45 +01:00
user_directory.py Always add local users to the user directory (#10796) 2021-09-21 12:02:34 +00:00
voip.py Add config linting script that checks for bool casing (#6203) 2019-10-23 13:22:54 +01:00
workers.py Split presence out of master (#9820) 2021-04-23 12:21:55 +01:00