- Jun 17, 2021
-
-
Brendan Abolivier authored
Fixes #9778 ACME v1 has been fully decommissioned for existing installs on June 1st 2021(see https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430/27), so we can now safely remove it from Synapse.
-
Richard van der Hoff authored
Fixes #8518 by telling the ResponseCache not to cache the /sync response if the next_batch param is the same as the since token.
-
Marcus authored
Reformat all files with the new version. Signed-off-by:
Marcus Hoffmann <bubu@bubu1.eu>
-
- Jun 15, 2021
-
-
Patrick Cloke authored
* Room version 7 for knocking. * Stable prefixes and endpoints (both client and federation) for knocking. * Removes the experimental configuration flag.
-
- Jun 14, 2021
-
-
Richard van der Hoff authored
This is the first of two PRs which seek to address #8518. This first PR lays the groundwork by extending ResponseCache; a second PR (#10158) will update the SyncHandler to actually use it, and fix the bug. The idea here is that we allow the callback given to ResponseCache.wrap to decide whether its result should be cached or not. We do that by (optionally) passing a ResponseCacheContext into it, which it can modify.
-
- Jun 09, 2021
-
-
Sorunome authored
This PR aims to implement the knock feature as proposed in https://github.com/matrix-org/matrix-doc/pull/2403 Signed-off-by:
Sorunome <mail@sorunome.de> Signed-off-by:
Andrew Morgan <andrewm@element.io>
-
Patrick Cloke authored
-
- Jun 07, 2021
-
-
14mRh4X0r authored
Fixes #1834. `get_new_events_for_appservice` internally calls `get_events_as_list`, which will filter out any rejected events. If all returned events are filtered out, `_notify_interested_services` will return without updating the last handled stream position. If there are 100 consecutive such events, processing will halt altogether. Breaking the loop is now done by checking whether we're up-to-date with `current_max` in the loop condition, instead of relying on an empty `events` list. Signed-off-by:
Willem Mulder <14mRh4X0r@gmail.com>
-
- Jun 03, 2021
-
-
Travis Ralston authored
[MSC2432](https://github.com/matrix-org/matrix-doc/pull/2432) added this endpoint originally but it has since been included in the spec for nearly a year. This is progress towards https://github.com/matrix-org/synapse/issues/8334
-
- Jun 02, 2021
-
-
Dirk Klimpel authored
Related to: #6681, #5956, #10040 Signed-off-by:
Dirk Klimpel <dirk@klimpel.org>
-
Erik Johnston authored
-
- Jun 01, 2021
-
-
Richard van der Hoff authored
Empirically, this helped my server considerably when handling gaps in Matrix HQ. The problem was that we would repeatedly call have_seen_events for the same set of (50K or so) auth_events, each of which would take many minutes to complete, even though it's only an index scan.
-
- May 27, 2021
-
-
Callum Brown authored
Implements MSC2414: https://github.com/matrix-org/matrix-doc/pull/2414 See #8551 Signed-off-by:
Callum Brown <callum@calcuode.com>
-
Erik Johnston authored
Fixes #10068
-
Richard van der Hoff authored
we don't need to reload the tls cert if we don't have any tls listeners. Follow-up to #9280.
-
Richard van der Hoff authored
* Make `invalidate` and `invalidate_many` do the same thing ... so that we can do either over the invalidation replication stream, and also because they always confused me a bit. * Kill off `invalidate_many` * changelog
-
- May 26, 2021
-
-
Dirk Klimpel authored
Signed-off-by:
Dirk Klimpel <dirk@klimpel.org>
-
- May 24, 2021
-
-
Patrick Cloke authored
-
Richard van der Hoff authored
`keylen` seems to be a thing that is frequently incorrectly set, and we don't really need it. The only time it was used was to figure out if we had removed a subtree in `del_multi`, which we can do better by changing `TreeCache.pop` to return a different type (`TreeCacheNode`). Commits should be independently reviewable.
-
- May 21, 2021
-
-
Erik Johnston authored
-
Andrew Morgan authored
https://github.com/matrix-org/synapse/issues/9962 uncovered that we accidentally removed all but one of the presence updates that we store in the database when persisting multiple updates. This could cause users' presence state to be stale. The bug was fixed in #10014, and this PR just adds a test that failed on the old code, and was used to initially verify the bug. The test attempts to insert some presence into the database in a batch using `PresenceStore.update_presence`, and then simply pulls it out again.
-
Erik Johnston authored
-
- May 18, 2021
-
-
Andrew Morgan authored
Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823)
-
- May 14, 2021
-
-
Richard van der Hoff authored
- use a tuple rather than a list for the iterable that is passed into the wrapped function, for performance - test that we can pass an iterable and that keys are correctly deduped.
-
- May 12, 2021
-
-
Brendan Abolivier authored
* Correctly ratelimit invites when creating a room Also allow ratelimiting for more than one action at a time.
-
Richard van der Hoff authored
-
- May 11, 2021
-
-
Richard van der Hoff authored
-
Patrick Cloke authored
This should help ensure that equivalent results are achieved between homeservers querying for the summary of a space. This implements modified MSC1772 rules, according to MSC2946. The different is that the origin_server_ts of the m.room.create event is not used as a tie-breaker since this might not be known if the homeserver is not part of the room.
-
Richard van der Hoff authored
* tests for push rule pattern matching * tests for acl pattern matching * factor out common `re.escape` * Factor out common re.compile * Factor out common anchoring code * add word_boundary support to `glob_to_regex` * Use `glob_to_regex` in push rule evaluator NB that this drops support for character classes. I don't think anyone ever used them. * Improve efficiency of globs with multiple wildcards The idea here is that we compress multiple `*` globs into a single `.*`. We also need to consider `?`, since `*?*` is as hard to implement efficiently as `**`. * add assertion on regex pattern * Fix mypy * Simplify glob_to_regex * Inline the glob_to_regex helper function Signed-off-by:
Dan Callahan <danc@element.io> * Moar comments Signed-off-by:
Dan Callahan <danc@element.io> Co-authored-by:
Dan Callahan <danc@element.io>
-
- May 07, 2021
-
-
Richard van der Hoff authored
The hope here is that by moving all the schema files into synapse/storage/schema, it gets a bit easier for newcomers to navigate. It certainly got easier for me to write a helpful README. There's more to do on that front, but I'll follow up with other PRs for that.
-
- May 06, 2021
-
-
Erik Johnston authored
This reverts commit e9eb3549.
-
- May 05, 2021
-
-
Erik Johnston authored
-
DeepBlueV7.X authored
This leaves out all optional keys from /sync. This should be fine for all clients tested against conduit already, but it may break some clients, as such we should check, that at least most of them don't break horribly and maybe back out some of the individual changes. (We can probably always leave out groups for example, while the others may cause more issues.) Signed-off-by:
Nicolas Werner <nicolas.werner@hotmail.de>
-
- Apr 29, 2021
-
-
ThibF authored
Support the delete of a room through DELETE request and mark previous request as deprecated through documentation. Signed-off-by:
Thibault Ferrante <thibault.ferrante@pm.me>
-
- Apr 28, 2021
-
-
Erik Johnston authored
Only affects workers. Introduced in #9819. Fixes #9899.
-
- Apr 27, 2021
-
-
Andrew Morgan authored
I went through and removed a bunch of cruft that was lying around for compatibility with old Python versions. This PR also will now prevent Synapse from starting unless you're running Python 3.6+.
-
- Apr 23, 2021
-
-
Richard van der Hoff authored
* Simplify `start_listening` callpath * Correctly check the size of uploaded files
-
Richard van der Hoff authored
First of all, a fixup to `FakeChannel` which is needed to make it work with the default HTTP channel implementation. Secondly, it looks like we no longer need `_PushHTTPChannel`, because as of #8013, the producer that gets attached to the `HTTPChannel` is now an `IPushProducer`. This is good, because it means we can remove a whole load of test-specific boilerplate which causes variation between tests and production.
-
Richard van der Hoff authored
-
Andrew Morgan authored
-