- Jun 28, 2018
-
-
Matthew Hodgson authored
-
- Jun 27, 2018
-
-
Amber Brown authored
-
- Jun 22, 2018
-
-
Richard van der Hoff authored
When _get_state_for_groups is given a wildcard filter, just do a complete lookup. Hopefully this will give us the best of both worlds by not filling up the ram if we only need one or two keys, but also making the cache still work for the federation reader usecase.
-
Amber Brown authored
-
- Jun 14, 2018
-
-
Richard van der Hoff authored
We need power levels for this test to do what it is supposed to do.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Make it so that, before there is a power-levels event in the room, you need a power level of at least 50 to send state. Partially addresses https://github.com/matrix-org/matrix-doc/issues/1192
-
Amber Brown authored
-
- Jun 12, 2018
-
-
Richard van der Hoff authored
This is only used by filter_events_for_client, so we can simplify the whole thing by just doing one user at a time, and removing a dead storage function to boot.
-
- Jun 05, 2018
-
-
Amber Brown authored
-
- Jun 04, 2018
-
-
Amber Brown authored
-
- May 29, 2018
-
-
Richard van der Hoff authored
-
Matthew Hodgson authored
-
Matthew Hodgson authored
-
- May 22, 2018
-
-
Richard van der Hoff authored
Returns an M_CONSENT_NOT_GIVEN error (cf https://github.com/matrix-org/matrix-doc/issues/1252) if consent is not yet given.
-
Richard van der Hoff authored
turns out we need to reuse this, so it's better in the config class.
-
Richard van der Hoff authored
When a user first syncs, we will send them a server notice asking them to consent to the privacy policy if they have not already done so.
-
Amber Brown authored
-
Amber Brown authored
-
- May 21, 2018
-
-
Richard van der Hoff authored
ONE DAY I WILL PURGE THE WORLD OF THIS EVIL
-
Richard van der Hoff authored
The transaction cache has some code which tries to stop it caching failures, but if the callback function failed straight away, then things would happen backwards and we'd end up with the failure stuck in the cache.
-
- May 11, 2018
-
-
Erik Johnston authored
This simplifies things as it is, but will also allow us to change the way we traverse topologically without having to update the way push actions work.
-
- May 02, 2018
-
-
Erik Johnston authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
... which were making other, innocent, tests, fail. Plus remove a spurious unittest.DEBUG which was making the output noisy.
-
Richard van der Hoff authored
So, it turns out that if you have a first `Deferred` `D1`, you can add a callback which returns another `Deferred` `D2`, and `D2` must then complete before any further callbacks on `D1` will execute (and later callbacks on `D1` get the *result* of `D2` rather than `D2` itself). So, `D1` might have `called=True` (as in, it has started running its callbacks), but any new callbacks added to `D1` won't get run until `D2` completes - so if you `yield D1` in an `inlineCallbacks` function, your `yield` will 'block'. In conclusion: some of our assumptions in `logcontext` were invalid. We need to make sure that we don't optimise out the logcontext juggling when this situation happens. Fortunately, it is easy to detect by checking `D1.paused`.
-
Richard van der Hoff authored
This was introduced in 4f2f5171
-
- Apr 30, 2018
-
-
Adrian Tschira authored
This closes #2602 v1auth was created to account for the differences in status code between the v1 and v2_alpha revisions of the protocol (401 vs 403 for invalid tokens). However since those protocols were merged, this makes the r0 version/endpoint internally inconsistent, and violates the specification for the r0 endpoint. This might break clients that rely on this inconsistency with the specification. This is said to affect the legacy angular reference client. However, I feel that restoring parity with the spec is more important. Either way, it is critical to inform developers about this change, in case they rely on the illegal behaviour. Signed-off-by:
Adrian Tschira <nota@notafile.com>
-
- Apr 22, 2018
-
-
Richard van der Hoff authored
This doesn't feel like a wheel we need to reinvent.
-
- Apr 16, 2018
-
-
Richard van der Hoff authored
In most cases, we limit the number of prev_events for a given event to 10 events. This fixes a particular code path which created events with huge numbers of prev_events.
-
- Apr 15, 2018
-
-
Adrian Tschira authored
This is a mixed commit that fixes various small issues * print parentheses * 01 is invalid syntax (it was octal in py2) * [x for i in 1, 2] is invalid syntax * six moves Signed-off-by:
Adrian Tschira <nota@notafile.com>
-
Adrian Tschira authored
The imports were shuffled around a bunch in py3 Signed-off-by:
Adrian Tschira <nota@notafile.com>
-
Adrian Tschira authored
These worked accidentally before (python2 doesn't complain if you compare incompatible types) but under py3 this blows up spectacularly Signed-off-by:
Adrian Tschira <nota@notafile.com>
-
Adrian Tschira authored
Doing this I learned e.message was pretty shortlived, added in 2.6, they realized it was a bad idea and deprecated it in 2.7 Signed-off-by:
Adrian Tschira <nota@notafile.com>
-
- Apr 11, 2018
-
-
Erik Johnston authored
-
- Apr 05, 2018
-
-
Richard van der Hoff authored
Fixes an issue where a cache invalidation would invalidate *all* pending entries, rather than just the entry that we intended to invalidate.
-
- Apr 04, 2018
-
-
Adrian Tschira authored
This has no effect on python2 Signed-off-by:
Adrian Tschira <nota@notafile.com>
-
Silke authored
Signed-off-by:
Silke Hofstra <silke@slxh.eu>
-
- Mar 28, 2018
-
-
Neil Johnson authored
-
Neil Johnson authored
-