- Sep 21, 2021
-
-
Patrick Cloke authored
-
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:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-
- Sep 10, 2021
-
-
David Robertson authored
No functional changes here. This came out as I was working to tackle #5677
-
- Sep 06, 2021
-
-
David Robertson authored
-
- Sep 01, 2021
-
-
Patrick Cloke authored
This avoids breaking the entire endpoint if a room with an unsupported room version is encountered.
-
Patrick Cloke authored
This updates the ordering of the returned events from the spaces summary API to that defined in MSC2946 (which updates MSC1772). Previously a step was skipped causing ordering to be inconsistent with clients.
-
- Aug 27, 2021
-
-
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.
-
- Aug 26, 2021
-
-
Richard van der Hoff authored
The idea here is to take anything to do with incoming events and move it out to a separate handler, as a way of making FederationHandler smaller.
-
- Aug 19, 2021
-
-
Patrick Cloke authored
A user will still see this room if it is in a local cache, but it will not reappear if clearing the cache and reloading.
-
- Aug 17, 2021
-
-
reivilibre authored
-
- Aug 16, 2021
-
-
Michael Telatynski authored
-
Patrick Cloke authored
-
Šimon Brandner authored
* Handle string read receipt data Signed-off-by:
Šimon Brandner <simon.bra.ag@gmail.com> * Test that we handle string read receipt data Signed-off-by:
Šimon Brandner <simon.bra.ag@gmail.com> * Add changelog for #10606 Signed-off-by:
Šimon Brandner <simon.bra.ag@gmail.com> * Add docs Signed-off-by:
Šimon Brandner <simon.bra.ag@gmail.com> * Ignore malformed RRs Signed-off-by:
Šimon Brandner <simon.bra.ag@gmail.com> * Only surround hidden = ... Signed-off-by:
Šimon Brandner <simon.bra.ag@gmail.com> * Remove unnecessary argument Signed-off-by:
Šimon Brandner <simon.bra.ag@gmail.com> * Update changelog.d/10606.bugfix Co-authored-by:
Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
-
- Aug 11, 2021
-
-
Patrick Cloke authored
-
Patrick Cloke authored
As opposed to only allowing the summary of spaces which the user is already in or has world-readable visibility. This makes the logic consistent with whether a space/room is returned as part of a space and whether a space summary can start at a space.
-
Patrick Cloke authored
And ensure that the file is checked via mypy.
-
- Aug 10, 2021
-
-
Patrick Cloke authored
This adds support for the /hierarchy endpoint, which is an update to MSC2946. Currently this only supports rooms known locally to the homeserver.
-
Patrick Cloke authored
If a room which the requesting user was invited to was queried over federation it will now properly appear in the spaces summary (instead of being stripped out by the requesting server).
-
- Aug 09, 2021
-
-
Dirk Klimpel authored
Signed-off-by:
Dirk Klimpel <dirk@klimpel.org>
-
Patrick Cloke authored
This adds support for MSC3289: room version 8. This is room version 7 + MSC3083.
-
- Aug 05, 2021
-
-
Patrick Cloke authored
This should have no user-visible changes, but refactors some pieces of the SpaceSummaryHandler before adding support for the updated MSC2946.
-
Will Hunt authored
If there are no services providing a protocol, omit it completely instead of returning an empty dictionary. This fixes a long-standing spec compliance bug.
-
- Jul 29, 2021
-
-
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 ```
-
- Jul 28, 2021
-
-
Šimon Brandner authored
Implementation of matrix-org/matrix-doc#2285
-
- Jul 27, 2021
-
-
Andrew Morgan authored
Co-authored-by:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-
- Jul 13, 2021
-
-
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.
-
Jonathan de Jong authored
-
- Jul 12, 2021
-
-
Patrick Cloke authored
-
- Jul 08, 2021
-
-
Cristina authored
Fixes #9602
-
- Jul 06, 2021
-
-
Dagfinn Ilmari Mannsåker authored
-
- Jul 01, 2021
-
-
Patrick Cloke authored
Instead of mixing them with user authentication methods.
-
- Jun 29, 2021
-
-
Patrick Cloke authored
Previously m.child.room events in non-space rooms would be treated as part of the room graph, but this is no longer supported.
-
- Jun 24, 2021
-
-
Richard van der Hoff authored
The idea here is to stop people sending things that aren't joins/leaves/knocks through these endpoints: previously you could send anything you liked through them. I wasn't able to find any security holes from doing so, but it doesn't sound like a good thing.
-
Quentin Gliech authored
This implements refresh tokens, as defined by MSC2918 This MSC has been implemented client side in Hydrogen Web: vector-im/hydrogen-web#235 The basics of the MSC works: requesting refresh tokens on login, having the access tokens expire, and using the refresh token to get a new one. Signed-off-by:
Quentin Gliech <quentingliech@gmail.com>
-
- Jun 23, 2021
-
-
Brendan Abolivier authored
Fixes #10234
-
Brendan Abolivier authored
If a room is remote and we don't have a user in it, always try to join it. It might fail if the room is invite-only, but we don't have a user to invite with, so at this point it's the best we can do. Fixes #10233 (at least to some extent)
-
- Jun 22, 2021
-
-
Eric Eastwood authored
Work on https://github.com/matrix-org/matrix-doc/pull/2716
-
- Jun 18, 2021
-
-
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.
-
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.
-
- Jun 17, 2021
-
-
Marcus authored
Reformat all files with the new version. Signed-off-by:
Marcus Hoffmann <bubu@bubu1.eu>
-