David Robertson
0a00c99823
Fix upgrading a room without `events` field in power levels ( #16725 )
5 maanden geleden
Travis Ralston
d6e194b2bc
Implement MSC4069: Inhibit profile propagation ( #16636 )
MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/4069
5 maanden geleden
Andrew Yasinishyn
63d96bfc61
ModuleAPI SSO auth callbacks ( #15207 )
Signed-off-by: Andrii Yasynyshyn yasinishyn.a.n@gmail.com
5 maanden geleden
Patrick Cloke
579c6be5f6
Drop unused tables & unneeded access token ID for events. ( #16522 )
5 maanden geleden
Erik Johnston
a14678492e
Reduce DB load when forget on leave setting is disabled ( #16668 )
* Reduce DB load when forget on leave setting is disabled
* Newsfile
5 maanden geleden
Mathieu Velten
b0ed14d815
Ignore `encryption_enabled_by_default_for_room_type` for notices room ( #16677 )
5 maanden geleden
Erik Johnston
700c8a0de5
Reduce task concurrency ( #16656 )
6 maanden geleden
Erik Johnston
3e8531d3ba
Speed up deleting device messages ( #16643 )
Keeping track of a lower bound of stream ID where we've deleted everything below makes the queries much faster. Otherwise, every time we scan for rows to delete we'd re-scan across all the rows that have previously deleted (until the next table VACUUM).
6 maanden geleden
Erik Johnston
1b238e8837
Speed up persisting large number of outliers ( #16649 )
Recalculating the roots tuple every iteration could be very expensive, so instead let's do a topological sort.
6 maanden geleden
David Robertson
43d1aa75e8
Add an Admin API to temporarily grant the ability to update an existing cross-signing key without UIA ( #16634 )
6 maanden geleden
Patrick Cloke
f2f2c7c1f0
Use full GitHub links instead of bare issue numbers. ( #16637 )
6 maanden geleden
Patrick Cloke
ab3f1b3b53
Convert simple_select_one_txn and simple_select_one to return tuples. ( #16612 )
6 maanden geleden
Patrick Cloke
ff716b483b
Return attrs for more media repo APIs. ( #16611 )
6 maanden geleden
Patrick Cloke
cfb6d38c47
Remove remaining usage of cursor_to_dict. ( #16564 )
6 maanden geleden
Patrick Cloke
daec55e1fe
Merge pull request from GHSA-mp92-3jfm-3575
6 maanden geleden
Patrick Cloke
7a3a55ac98
Merge pull request from GHSA-mp92-3jfm-3575
6 maanden geleden
David Robertson
de981ae567
Claim local one-time-keys in bulk ( #16565 )
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
6 maanden geleden
David Robertson
fdce83ee60
Claim fallback keys in bulk ( #16570 )
6 maanden geleden
Patrick Cloke
2bf9341406
Ensure local invited & knocking users leave before purge. ( #16559 )
This is mostly useful for federated rooms where some users
would get stuck in the invite or knock state when the room
was purged from their homeserver.
6 maanden geleden
Erik Johnston
928e964857
Fix cross-worker ratelimiting ( #16558 )
c.f. #16481
6 maanden geleden
Erik Johnston
c02406ac71
Add new module API for adding custom fields to events `unsigned` section ( #16549 )
6 maanden geleden
Patrick Cloke
679c691f6f
Remove more usages of cursor_to_dict. ( #16551 )
Mostly to improve type safety.
6 maanden geleden
Patrick Cloke
85e5f2dc25
Add a new module API to update user presence state. ( #16544 )
This adds a module API which allows a module to update a user's
presence state/status message. This is useful for controlling presence
from an external system.
To fully control presence from the module the presence.enabled config
parameter gains a new state of "untracked" which disables internal tracking
of presence changes via user actions, etc. Only updates from the module will
be persisted and sent down sync properly).
6 maanden geleden
Patrick Cloke
9407d5ba78
Convert simple_select_list and simple_select_list_txn to return lists of tuples ( #16505 )
This should use fewer allocations and improves type hints.
6 maanden geleden
Erik Johnston
ba47fea528
Allow multiple workers to write to receipts stream. ( #16432 )
Fixes #16417
6 maanden geleden
Erik Johnston
e9069c9f91
Mark sync as limited if there is a gap in the timeline ( #16485 )
This splits thinsg into two queries, but most of the time we won't have
new event backwards extremities so this shouldn't actually add an extra
RTT for the majority of cases.
Note this removes the check for events with no prev events, but that was
part of MSC2716 work that has since been removed.
7 maanden geleden
Mathieu Velten
bcff01b406
Improve performance of delete device messages query ( #16492 )
7 maanden geleden
Patrick Cloke
6ad1f9eac2
Convert DeviceLastConnectionInfo to attrs. ( #16507 )
To improve type safety & memory usage.
7 maanden geleden
Patrick Cloke
e3e0ae4ab1
Convert state delta processing from a dict to attrs. ( #16469 )
For improved type checking & memory usage.
7 maanden geleden
Mathieu Velten
eee6474bce
Remove useless async job to delete device messages on sync ( #16491 )
7 maanden geleden
Patrick Cloke
4cc729d480
Revert "Drop unused tables & unneeded access token ID for events. ( #16268 )" ( #16465 )
This reverts commit cabd577460
.
There are additional usages of these tables
which need to be removed first.
7 maanden geleden
Patrick Cloke
cc865fffc0
Convert user_get_threepids response to attrs. ( #16468 )
This improves type annotations by not having a dictionary of Any values.
7 maanden geleden
dependabot[bot]
0a67743d9e
Bump ruff from 0.0.290 to 0.0.292 ( #16449 )
* Bump ruff from 0.0.290 to 0.0.292
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.0.290 to 0.0.292.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md )
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.290...v0.0.292 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix up lint
---------
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>
7 maanden geleden
David Robertson
1f10c20806
Apply join rate limiter outside the lineariser ( #16441 )
7 maanden geleden
Patrick Cloke
cabd577460
Drop unused tables & unneeded access token ID for events. ( #16268 )
Drop the event_txn_id table and the tables related to MSC2716,
which is no longer supported in Synapse.
7 maanden geleden
Patrick Cloke
fc31b495b3
Stop sending incorrect knock_state_events. ( #16403 )
Synapse was incorrectly implemented with a knock_state_events
property on some APIs (instead of knock_room_state). This was
correct in Synapse 1.70.0, but *both* fields were sent to also be
compatible with Synapse versions expecting the wrong field.
Enough time has passed that only the correct field needs to be
included/handled.
7 maanden geleden
Erik Johnston
009b47badf
Factor out `MultiWriter` token from `RoomStreamToken` ( #16427 )
7 maanden geleden
Erik Johnston
80ec81dcc5
Some refactors around receipts stream ( #16426 )
7 maanden geleden
David Robertson
1026776380
mypy plugin to check `@cached` return types ( #14911 )
Co-authored-by: David Robertson <davidr@element.io>
Co-authored-by: Patrick Cloke <patrickc@matrix.org>
Co-authored-by: Erik Johnston <erik@matrix.org>
Assert that the return type of callables wrapped in @cached
and @cachedList are cachable (aka immutable).
7 maanden geleden
Patrick Cloke
f84da3c32e
Add a cache around server ACL checking ( #16360 )
* Pre-compiles the server ACLs onto an object per room and
invalidates them when new events come in.
* Converts the server ACL checking into Rust.
7 maanden geleden
Erik Johnston
47ffc7e548
Reduce calls to `send_presence_to_destinations` ( #16385 )
7 maanden geleden
Patrick Cloke
7ec0a141b4
Convert more cached return values to immutable types ( #16356 )
8 maanden geleden
Patrick Cloke
d7c89c5908
Return immutable objects for cachedList decorators ( #16350 )
8 maanden geleden
Patrick Cloke
c1e244c8f7
Make cached account data/tags/admin types immutable ( #16325 )
8 maanden geleden
Patrick Cloke
85bfd4735e
Return an immutable value from get_latest_event_ids_in_room. ( #16326 )
8 maanden geleden
Patrick Cloke
63d28a88c1
Additional validation of receipts ( #16327 )
Reject invalid receipts with a reasonable error message &
expands tests for receipts.
8 maanden geleden
José Joaquín Atria
6946209e67
Set email charset as utf-8 rather than utf8 ( #16329 )
8 maanden geleden
Mathieu Velten
dd44ee00b6
Add automatic purge after all users forget a room ( #15488 )
Also add restore of purge/shutdown rooms after a synapse restart.
Co-authored-by: Eric Eastwood <erice@matrix.org>
Co-authored-by: Erik Johnston <erikj@matrix.org>
8 maanden geleden
Erik Johnston
e9e2904eb2
Speed up deleting to-device messages task ( #16318 )
8 maanden geleden
Erik Johnston
954921736b
Refactor `get_user_by_id` ( #16316 )
8 maanden geleden