forked-synapse/synapse
Erik Johnston 2999a14aed
Sliding Sync: Make PerConnectionState immutable (#17600)
This is so that we can cache it.

We also move the sliding sync types to
`synapse/types/handlers/sliding_sync.py`. This is mainly in-prep for
#17599 to avoid circular imports.

The only change in behaviour is that
`RoomSyncConfig.combine_sync_config(..)` now returns a new room sync
config rather than mutating in-place.

Reviewable commit-by-commit.

---------

Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
2024-08-29 16:22:57 +01:00
..
_scripts Sliding Sync: Pre-populate room data for quick filtering/sorting (#17512) 2024-08-29 16:09:51 +01:00
api Sliding Sync: Pre-populate room data for quick filtering/sorting (#17512) 2024-08-29 16:09:51 +01:00
app Start handlers for new media endpoints when media resource configured (#17483) 2024-08-08 14:35:46 +00:00
appservice Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
config Fixed presence results not returning offline users on initial sync (#17231) 2024-07-23 09:59:24 +00:00
crypto Fix fetching signing keys when old_verify_keys is omitted (#17568) 2024-08-14 14:13:56 +01:00
events Sliding Sync: Update filters to be robust against remote invite rooms (#17450) 2024-07-30 13:20:29 -05:00
federation Start handlers for new media endpoints when media resource configured (#17483) 2024-08-08 14:35:46 +00:00
handlers Sliding Sync: Make PerConnectionState immutable (#17600) 2024-08-29 16:22:57 +01:00
http Fix starting non-media repos (#17626) 2024-08-29 12:26:17 +00:00
logging Fix @tag_args for non-methods (#17604) 2024-08-27 11:47:28 +01:00
media Fix content length on federation /thumbnail responses (#17532) 2024-08-28 11:29:12 +01:00
metrics Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
module_api Bump mypy from 1.5.1 to 1.8.0 (#16901) 2024-03-13 17:05:57 +00:00
push Fix room type typo in mailer (#17336) 2024-06-24 10:02:16 -05:00
replication Reintroduce "Reduce device lists replication traffic."" (#17361) 2024-06-25 10:34:34 +01:00
res Send an email if the address is already bound to an user account (#16819) 2024-04-23 16:45:24 +01:00
rest Sliding sync: factor out room list logic (#17622) 2024-08-28 18:42:19 +01:00
server_notices Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
spam_checker_api Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
state Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
static Update link to the clients webpage, fix #15825 (#15874) 2023-07-06 17:28:09 +02:00
storage Sliding Sync: Pre-populate room data for quick filtering/sorting (#17512) 2024-08-29 16:09:51 +01:00
streams Fix regression when bounding future tokens (#17391) 2024-07-02 14:06:36 +01:00
synapse_rust Add event.internal_metadata.instance_name (#17300) 2024-06-13 11:32:50 -05:00
types Sliding Sync: Make PerConnectionState immutable (#17600) 2024-08-29 16:22:57 +01:00
util Reduce concurrent thread usage in media (#17567) 2024-08-14 12:41:53 +01:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
_pydantic_compat.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
event_auth.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
notifier.py Reduce volume of 'Waiting for current token' logs, which were introduced in v1.109.0. (#17428) 2024-07-23 11:51:34 +01:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Register the media threadpool with our metrics (#17566) 2024-08-14 15:11:22 +01:00
visibility.py Include user membership on events (#17282) 2024-06-13 21:45:54 +00:00