- Apr 06, 2021
-
-
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.
-
Patrick Cloke authored
-
Andrew Morgan authored
-
Richard van der Hoff authored
The `remote_media_cache_thumbnails_media_origin_media_id_thumbna_key` constraint is superceded by `remote_media_repository_thumbn_media_origin_id_width_height_met` (which adds `thumbnail_method` to the unique key). PR #7124 made an attempt to remove the old constraint, but got the name wrong, so it didn't work. Here we update the bg update and rerun it. Fixes #8649.
-
Erik Johnston authored
-
Erik Johnston authored
Co-authored-by:
Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Jonathan de Jong authored
-
Patrick Cloke authored
-
Patrick Cloke authored
-
- Apr 05, 2021
-
-
Jonathan de Jong authored
-
- Apr 02, 2021
-
-
Jonathan de Jong authored
-
- Apr 01, 2021
-
-
Erik Johnston authored
-
Dirk Klimpel authored
-
- Mar 31, 2021
-
-
Patrick Cloke authored
Per MSC3083.
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Denis Kasak authored
The regex should be terminated so that subdomain matches of another domain are not accepted. Just ensuring that someone doesn't shoot themselves in the foot by copying our example. Signed-off-by:
Denis Kasak <dkasak@termina.org.uk>
-
Cristina authored
Fixes #9642. Signed-off-by:
Cristina Muñoz <hi@xmunoz.com>
-
Andrew Morgan authored
This PR rewrites the original complement.sh script with a number of improvements: * We can now use a local checkout of Complement (configurable with `COMPLEMENT_DIR`), though the default behaviour still downloads the master branch. * You can now specify a regex of test names to run, or just run all tests. * We now use the Synapse test blacklist tag (so all tests will pass).
-
- Mar 30, 2021
-
-
Richard van der Hoff authored
-
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`.
-
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
-
Erik Johnston authored
-
Andrew Morgan authored
For it's obvious performance benefits. `dmypy` support landed in #9692.
-
- Mar 29, 2021
-
-
Patrick Cloke authored
-
blakehawkins authored
Signed-off-by:
blakehawkins <blake.hawkins.11@gmail.com>
-
Patrick Cloke authored
Includes an abstract base class which both the FederationSender and the FederationRemoteSendQueue must implement.
-
Richard van der Hoff authored
I've reiterated the advice about using `oidc` to migrate, since I've seen a few people caught by this. I've also removed a couple of the examples as they are duplicating the OIDC documentation, and I think they might be leading people astray.
-
Andrew Morgan authored
-
Jonathan de Jong authored
-
Richard van der Hoff authored
If you have the wrong version of `cryptography` installed, synapse suggests: ``` To install run: pip install --upgrade --force 'cryptography>=3.4.7;python_version>='3.6'' ``` However, the use of ' inside '...' doesn't work, so when you run this, you get an error.
-
- Mar 26, 2021
-
-
Eric Eastwood authored
Make pip install faster in Docker build for [Complement](https://github.com/matrix-org/complement) testing. If files have changed in a `COPY` command, Docker will invalidate all of the layers below. So I changed the order of operations to install all dependencies before we `COPY synapse /synapse/synapse/`. This allows Docker to use our cached layer of dependencies even when we change the source of Synapse and speed up builds dramatically! `53.5s` -> `3.7s` builds
As an alternative, I did try using BuildKit caches but this still took 30 seconds overall on that step. 15 seconds to gather the dependencies from the cache and another 15 seconds to `Installing collected packages`. Fix https://github.com/matrix-org/synapse/issues/9364 -
Richard van der Hoff authored
This warning is somewhat confusing to users, so let's suppress it
-
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.
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-