mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
4a7c58642c
Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync This iteration only focuses on returning the list of room IDs in the sliding window API (without sorting/filtering). Rooms appear in the Sliding sync response based on: - `invite`, `join`, `knock`, `ban` membership events - Kicks (`leave` membership events where `sender` is different from the `user_id`/`state_key`) - `newly_left` (rooms that were left during the given token range, > `from_token` and <= `to_token`) - In order for bans/kicks to not show up, you need to `/forget` those rooms. This doesn't modify the event itself though and only adds the `forgotten` flag to `room_memberships` in Synapse. There isn't a way to tell when a room was forgotten at the moment so we can't factor it into the from/to range. ### Example request `POST http://localhost:8008/_matrix/client/unstable/org.matrix.msc3575/sync` ```json { "lists": { "foo-list": { "ranges": [ [0, 99] ], "sort": [ "by_notification_level", "by_recency", "by_name" ], "required_state": [ ["m.room.join_rules", ""], ["m.room.history_visibility", ""], ["m.space.child", "*"] ], "timeline_limit": 100 } } } ``` Response: ```json { "next_pos": "s58_224_0_13_10_1_1_16_0_1", "lists": { "foo-list": { "count": 1, "ops": [ { "op": "SYNC", "range": [0, 99], "room_ids": [ "!MmgikIyFzsuvtnbvVG:my.synapse.linux.server" ] } ] } }, "rooms": {}, "extensions": {} } ``` |
||
---|---|---|
.. | ||
__init__.py | ||
oidc_test_key.p8 | ||
oidc_test_key.pub.pem | ||
test_admin.py | ||
test_appservice.py | ||
test_auth.py | ||
test_cas.py | ||
test_deactivate_account.py | ||
test_device.py | ||
test_directory.py | ||
test_e2e_keys.py | ||
test_e2e_room_keys.py | ||
test_federation_event.py | ||
test_federation.py | ||
test_message.py | ||
test_oauth_delegation.py | ||
test_oidc.py | ||
test_password_providers.py | ||
test_presence.py | ||
test_profile.py | ||
test_receipts.py | ||
test_register.py | ||
test_room_list.py | ||
test_room_member.py | ||
test_room_summary.py | ||
test_room.py | ||
test_saml.py | ||
test_send_email.py | ||
test_sliding_sync.py | ||
test_sso.py | ||
test_stats.py | ||
test_sync.py | ||
test_typing.py | ||
test_user_directory.py | ||
test_worker_lock.py |