synapse/changelog.d
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
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
10659.misc GHA: reintroduce an env var for $GITHUB_HEAD_REF (#10659) 2021-09-20 17:35:16 +01:00
10776.feature Verify ?chunk_id actually corresponds to an insertion event that exists (MSC2716) (#10776) 2021-09-15 09:34:30 +01:00
10777.misc Split out /batch_send meta events to their own fields (MSC2716) (#10777) 2021-09-15 09:30:58 +01:00
10785.misc Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
10796.misc Always add local users to the user directory (#10796) 2021-09-21 12:02:34 +00:00
10807.bugfix Allow sending a membership event to unban a user (#10807) 2021-09-21 10:23:34 +00:00
10810.bugfix Prevent logging context going missing on federation request timeout (#10810) 2021-09-14 13:01:30 +01:00
10812.misc Use direct references for some configuration variables (part 2) (#10812) 2021-09-15 08:34:52 -04:00
10815.misc Name the type of token in "Invalid token" messages (#10815) 2021-09-14 11:25:05 +01:00
10816.misc Make StateFilter frozen so we can hash it (#10816) 2021-09-14 16:35:53 +01:00
10817.misc Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
10823.misc Add type hints to state database module. (#10823) 2021-09-15 09:54:13 -04:00
10831.misc Require type hints in the handlers module. (#10831) 2021-09-20 08:56:23 -04:00
10834.misc Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
10843.bugfix Fix remove_stale_pushers job on SQLite. (#10843) 2021-09-20 10:26:13 +01:00
10845.doc Fix #10837 by adding JSON encoding/decoding to the Module API example… (#10845) 2021-09-17 18:04:37 +01:00