Skip to content
Snippets Groups Projects
  1. Sep 21, 2021
    • David Robertson's avatar
      Always add local users to the user directory (#10796) · 60453315
      David Robertson authored
      
      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: default avatarRichard van der Hoff <1389908+richvdh@users.noreply.github.com>
      60453315
  2. Sep 17, 2021
  3. Sep 13, 2021
  4. Sep 10, 2021
  5. Sep 08, 2021
  6. Sep 07, 2021
  7. Sep 06, 2021
  8. Sep 02, 2021
  9. Sep 01, 2021
  10. Aug 31, 2021
  11. Aug 27, 2021
  12. Aug 26, 2021
  13. Aug 23, 2021
  14. Aug 21, 2021
  15. Aug 19, 2021
  16. Aug 18, 2021
  17. Aug 17, 2021
  18. Aug 16, 2021
  19. Aug 11, 2021
  20. Aug 09, 2021
  21. Aug 06, 2021
  22. Aug 05, 2021
  23. Aug 03, 2021
Loading