Skip to content
Snippets Groups Projects
  1. Sep 21, 2021
    • Patrick Cloke's avatar
      4054dfa4
    • 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 10, 2021
  3. Sep 06, 2021
  4. Sep 01, 2021
  5. Aug 27, 2021
    • Richard van der Hoff's avatar
      Fix incompatibility with Twisted < 21. (#10713) · 8f982605
      Richard van der Hoff authored
      Turns out that the functionality added in #10546 to skip TLS was incompatible
      with older Twisted versions, so we need to be a bit more inventive.
      
      Also, add a test to (hopefully) not break this in future. Sadly, testing TLS is
      really hard.
      8f982605
  6. Aug 26, 2021
  7. Aug 19, 2021
  8. Aug 17, 2021
  9. Aug 16, 2021
  10. Aug 11, 2021
  11. Aug 10, 2021
  12. Aug 09, 2021
  13. Aug 05, 2021
  14. Jul 29, 2021
    • Eric Eastwood's avatar
      Fix backfilled events being rejected for no `state_groups` (#10439) · db6e7f15
      Eric Eastwood authored
      Reproducible on a federated homeserver when there is a membership auth event as a floating outlier. Then when we try to backfill one of that persons messages, it has missing membership auth to fetch which caused us to mistakenly replace the `context` for the message with that of the floating membership `outlier` event. Since `outliers` have no `state` or `state_group`, the error bubbles up when we continue down the persisting route: `sqlite3.IntegrityError: NOT NULL constraint failed: event_to_state_groups.state_group`
      
      Call stack:
      
      ```
      backfill
      _auth_and_persist_event
      _check_event_auth
      _update_auth_events_and_context_for_auth
      ```
      db6e7f15
  15. Jul 28, 2021
  16. Jul 27, 2021
  17. Jul 13, 2021
    • Patrick Cloke's avatar
      Show all joinable rooms in the spaces summary. (#10298) · 2d16e69b
      Patrick Cloke authored
      Previously only world-readable rooms were shown. This means that
      rooms which are public, knockable, or invite-only with a pending invitation,
      are included in a space summary. It also applies the same logic to
      the experimental room version from MSC3083 -- if a user has access
      to the proper allowed rooms then it is shown in the spaces summary.
      
      This change is made per MSC3173 allowing stripped state of a room to
      be shown to any potential room joiner.
      2d16e69b
    • Jonathan de Jong's avatar
      [pyupgrade] `tests/` (#10347) · 89cfc3dd
      Jonathan de Jong authored
      89cfc3dd
  18. Jul 12, 2021
  19. Jul 08, 2021
  20. Jul 06, 2021
  21. Jul 01, 2021
  22. Jun 29, 2021
  23. Jun 24, 2021
  24. Jun 23, 2021
  25. Jun 22, 2021
  26. Jun 18, 2021
    • Patrick Cloke's avatar
      Fix a missing await when in the spaces summary. (#10208) · 0bd96892
      Patrick Cloke authored
      This could cause a minor data leak if someone defined a non-restricted join rule
      with an allow key or used a restricted join rule in an older room version, but this is
      unlikely.
      
      Additionally this starts adding unit tests to the spaces summary handler.
      0bd96892
    • Brendan Abolivier's avatar
      Standardise the module interface (#10062) · 1b3e398b
      Brendan Abolivier authored
      This PR adds a common configuration section for all modules (see docs). These modules are then loaded at startup by the homeserver. Modules register their hooks and web resources using the new `register_[...]_callbacks` and `register_web_resource` methods of the module API.
      1b3e398b
  27. Jun 17, 2021
Loading