- Mar 29, 2023
-
-
Erik Johnston authored
Fixes up #15183
-
Erik Johnston authored
This should help reduce the number of devices e.g. simple bots the repeatedly login rack up. We only delete non-e2e devices as they should be safe to delete, whereas if we delete e2e devices for a user we may accidentally break their ability to receive e2e keys for a message.
-
- Mar 28, 2023
-
-
Patrick Cloke authored
Experimental support for MSC3983 is behind a configuration flag. If enabled, for users which are exclusively owned by an application service then the appservice will be queried for one-time keys *if* there are none uploaded to Synapse.
-
dependabot[bot] authored
* Bump ruff from 0.0.252 to 0.0.259 Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.252 to 0.0.259. - [Release notes](https://github.com/charliermarsh/ruff/releases) - [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/charliermarsh/ruff/compare/v0.0.252...v0.0.259 ) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by:
dependabot[bot] <support@github.com> * Fix new warnings * Mypy * Newsfile --------- Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by:
Erik Johnston <erik@matrix.org>
-
- Mar 24, 2023
-
-
Quentin Gliech authored
This makes it so that we rely on the `device_id` to delete pushers on logout, instead of relying on the `access_token_id`. This ensures we're not removing pushers on token refresh, and prepares for a world without access token IDs (also known as the OIDC). This actually runs the `set_device_id_for_pushers` background update, which was forgotten in #13831. Note that for backwards compatibility it still deletes pushers based on the `access_token` until the background update finishes.
-
Patrick Cloke authored
Invalid mentions data received over the Client-Server API should be rejected with a 400 error. This will hopefully stop clients from sending invalid data, although does not help with data received over federation.
-
- Mar 22, 2023
-
-
David Robertson authored
Additionally: * Consistently use `freeze()` in test --------- Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by:
6543 <6543@obermui.de>
-
- Mar 21, 2023
-
-
Andrew Morgan authored
Make `POST /_matrix/client/v3/rooms/{roomId}/report/{eventId}` endpoint return 404 if event exists, but the user lacks access (#15300)
-
Andrew Morgan authored
-
Erik Johnston authored
When a room is deleted in Synapse we remove the event forward extremities in the room, so if (say a bot) tries to send a message into the room we error out due to not being able to calculate prev events for the new event *before* we check if the sender is in the room. Fixes #8094
-
- Mar 20, 2023
-
-
Patrick Cloke authored
Separates REST layer code from the actual URL previewing.
-
Shay authored
-
- Mar 16, 2023
-
-
Patrick Cloke authored
With Redis commands do not need to be re-issued by the main process (they fan-out to all processes at once) and thus it is no longer necessary to worry about them reflecting recursively forever.
-
reivilibre authored
Refresh remote profiles that have been marked as stale, in order to fill the user directory. [rei:userdirpriv] (#14756) * Scaffolding for background process to refresh profiles * Add scaffolding for background process to refresh profiles for a given server * Implement the code to select servers to refresh from * Ensure we don't build up multiple looping calls * Make `get_profile` able to respect backoffs * Add logic for refreshing users * When backing off, schedule a refresh when the backoff is over * Wake up the background processes when we receive an interesting state event * Add tests * Newsfile Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Add comment about 1<<62 --------- Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
-
Andrew Morgan authored
-
- Mar 13, 2023
-
-
David Robertson authored
* Reproduce bad scenario in test * Avoid catchup optimisation for partial state rooms
-
- Mar 10, 2023
-
-
David Robertson authored
* Tweak docstring and type hint * Flip logic and provide better name * Separate decision from action * Track a set of strings, not EventBases * Require explicit boolean options from callers * Add explicit option for partial state rooms * Changelog * Rename param
-
Andrew Morgan authored
Fix missing conditional for registering `on_remove_user_third_party_identifier` module api callbacks (#15227
-
- Mar 09, 2023
-
-
Patrick Cloke authored
And fix any issues from having those type hints.
-
- Mar 07, 2023
-
-
Patrick Cloke authored
This removes the experimental configuration option and always escapes the push rule condition keys. Also escapes any (experimental) push rule condition keys in the base rules which contain dot in a field name.
-
Quentin Gliech authored
-
Patrick Cloke authored
This removes the configuration flag & updates the identifiers to use the stable version.
-
- Mar 06, 2023
-
-
Patrick Cloke authored
Enables MSC3925 support by default, which: * Includes the full edit event in the bundled aggregations of an edited event. * Stops modifying the original event's content to return the new content from the edit event. This is a backwards-incompatible change that is considered to be "correct" by the spec.
-
Patrick Cloke authored
This removes the configuration flag & updates the identifiers to use the stable version.
-
- Mar 03, 2023
-
-
6543 authored
The word boundary behaviour is slightly different, consider it acceptable for the tests.
-
- Mar 02, 2023
-
-
Patrick Cloke authored
Update intentional mentions (MSC3952) to depend on `exact_event_property_contains` (MSC3966). (#15051) This replaces the specific `is_user_mention` push rule condition used in MSC3952 with the generic `exact_event_property_contains` push rule condition from MSC3966.
-
Hugh Nimmo-Smith authored
-
- Feb 28, 2023
-
-
Richard van der Hoff authored
It turns out that no clients rely on server-side aggregation of `m.annotation` relationships: it's just not very useful as currently implemented. It's also non-trivial to calculate. I want to remove it from MSC2677, so to keep the implementation in line, let's remove it here.
-
reivilibre authored
Fix a long-standing bug where an initial sync would not respond to changes to the list of ignored users if there was an initial sync cached. (#15163)
-
Patrick Cloke authored
Internally the push rules module uses a `pattern_type` property for `event_match` conditions (and `related_event_match`) to mark the condition as matching the current user's Matrix ID or localpart. This is leaky to the Client-Server API where a user can successfully set a condition which provides `pattern_type` instead of `pattern` (note that there's no benefit to doing this -- the user can just use their own Matrix ID or localpart instead). When serializing back to the client the `pattern_type` property is converted into a proper `pattern`. The following changes are made to avoid this: * Separate the `KnownCondition::EventMatch` enum value into `EventMatch` and `EventMatchType`, each with their own expected properties. (Note that a similar change is made for `RelatedEventMatch`.) * Make it such that the `pattern_type` variants serialize to the same condition kind, but cannot be deserialized (since they're only provided by base rules). * As a final tweak, convert `user_id` vs. `user_localpart` values into an enum.
-
Dirk Klimpel authored
* Admin api to delete event report * lint + tests * newsfile * Apply suggestions from code review Co-authored-by:
David Robertson <david.m.robertson1@gmail.com> * revert changes - move to WorkerStore * update unit test * Note that timestamp is in millseconds --------- Co-authored-by:
David Robertson <david.m.robertson1@gmail.com>
-
- Feb 27, 2023
-
-
Andrew Morgan authored
-
Patrick Cloke authored
* Removes the `v1` directory from `test.rest.media.v1`. * Moves the non-REST code from `synapse.rest.media.v1` to `synapse.media`. * Flatten the `v1` directory from `synapse.rest.media`, but leave compatiblity with 3rd party media repositories and spam checkers.
-
- Feb 24, 2023
-
-
Shay authored
-
Erik Johnston authored
This only affects deployments using workers.
-
Sean Quah authored
* Fix a long-standing bug where non-ASCII characters in search terms, including accented letters, would not match characters in a different case. * Fix a long-standing bug where search terms using combining accents would not match display names using precomposed accents and vice versa. To fully take effect, the user directory must be rebuilt after this change. Fixes #14630. Signed-off-by:
Sean Quah <seanq@matrix.org>
-
- Feb 23, 2023
-
-
Patrick Cloke authored
Previously if an autodiscovered oEmbed request failed (e.g. the oEmbed endpoint is down or does not exist) then the entire URL preview would fail. Instead we now return everything we can, even if this additional request fails.
-
Patrick Cloke authored
Previously the experimental configuration option referred to the wrong MSC number.
-
Dirk Klimpel authored
-
- Feb 22, 2023
-
-
dependabot[bot] authored
-