Skip to content
Snippets Groups Projects
  1. Apr 09, 2021
  2. Apr 08, 2021
  3. Apr 06, 2021
    • Andrew Morgan's avatar
      Add a Synapse Module for configuring presence update routing (#9491) · 04819239
      Andrew Morgan authored
      At the moment, if you'd like to share presence between local or remote users, those users must be sharing a room together. This isn't always the most convenient or useful situation though.
      
      This PR adds a module to Synapse that will allow deployments to set up extra logic on where presence updates should be routed. The module must implement two methods, `get_users_for_states` and `get_interested_users`. These methods are given presence updates or user IDs and must return information that Synapse will use to grant passing presence updates around.
      
      A method is additionally added to `ModuleApi` which allows triggering a set of users to receive the current, online presence information for all users they are considered interested in. This is the equivalent of that user receiving presence information during an initial sync. 
      
      The goal of this module is to be fairly generic and useful for a variety of applications, with hard requirements being:
      
      * Sending state for a specific set or all known users to a defined set of local and remote users.
      * The ability to trigger an initial sync for specific users, so they receive all current state.
      04819239
    • Andrew Morgan's avatar
    • Patrick Cloke's avatar
  4. Apr 05, 2021
  5. Apr 01, 2021
  6. Mar 31, 2021
  7. Mar 30, 2021
    • Richard van der Hoff's avatar
      Replace `room_invite_state_types` with `room_prejoin_state` (#9700) · f02663c4
      Richard van der Hoff authored
      `room_invite_state_types` was inconvenient as a configuration setting, because
      anyone that ever set it would not receive any new types that were added to the
      defaults. Here, we deprecate the old setting, and replace it with a couple of
      new settings under `room_prejoin_state`.
      f02663c4
    • Erik Johnston's avatar
      Make RateLimiter class check for ratelimit overrides (#9711) · 963f4309
      Erik Johnston authored
      This should fix a class of bug where we forget to check if e.g. the appservice shouldn't be ratelimited.
      
      We also check the `ratelimit_override` table to check if the user has ratelimiting disabled. That table is really only meant to override the event sender ratelimiting, so we don't use any values from it (as they might not make sense for different rate limits), but we do infer that if ratelimiting is disabled for the user we should disabled all ratelimits.
      
      Fixes #9663
      963f4309
  8. Mar 29, 2021
  9. Mar 26, 2021
    • Erik Johnston's avatar
      Make it possible to use dmypy (#9692) · b5efcb57
      Erik Johnston authored
      Running `dmypy run` will do a `mypy` check while spinning up a daemon
      that makes rerunning `dmypy run` a lot faster.
      
      `dmypy` doesn't support `follow_imports = silent` and has
      `local_partial_types` enabled, so this PR enables those options and
      fixes the issues that were newly raised. Note that `local_partial_types`
      will be enabled by default in upcoming mypy releases.
      b5efcb57
  10. Mar 24, 2021
  11. Mar 22, 2021
  12. Mar 18, 2021
  13. Mar 17, 2021
  14. Mar 16, 2021
  15. Mar 15, 2021
  16. Mar 12, 2021
  17. Mar 11, 2021
  18. Mar 10, 2021
  19. Mar 09, 2021
  20. Mar 08, 2021
  21. Mar 04, 2021
  22. Mar 03, 2021
Loading