synapse-old/tests/handlers
Andrew Morgan 04819239ba
Add a Synapse Module for configuring presence update routing (#9491)
At the moment, if you'd like to share presence between local or remote users, those users must be sharing a room together. This isn't always the most convenient or useful situation though.

This PR adds a module to Synapse that will allow deployments to set up extra logic on where presence updates should be routed. The module must implement two methods, `get_users_for_states` and `get_interested_users`. These methods are given presence updates or user IDs and must return information that Synapse will use to grant passing presence updates around.

A method is additionally added to `ModuleApi` which allows triggering a set of users to receive the current, online presence information for all users they are considered interested in. This is the equivalent of that user receiving presence information during an initial sync. 

The goal of this module is to be fairly generic and useful for a variety of applications, with hard requirements being:

* Sending state for a specific set or all known users to a defined set of local and remote users.
* The ability to trigger an initial sync for specific users, so they receive all current state.
2021-04-06 14:38:30 +01:00
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
oidc_test_key.p8 JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
oidc_test_key.pub.pem JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
test_admin.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_appservice.py Convert additional test-cases to homeserver test case. (#9396) 2021-02-16 08:04:15 -05:00
test_auth.py Record the SSO Auth Provider in the login token (#9510) 2021-03-04 14:44:22 +00:00
test_cas.py Record the SSO Auth Provider in the login token (#9510) 2021-03-04 14:44:22 +00:00
test_device.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_directory.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_e2e_keys.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_e2e_room_keys.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_federation.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_message.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_oidc.py Add SSO attribute requirements for OIDC providers (#9609) 2021-03-16 11:46:07 -04:00
test_password_providers.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_presence.py Implement MSC3026: busy presence state 2021-03-18 16:34:47 +01:00
test_profile.py Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
test_register.py Pass SSO IdP information to spam checker's registration function (#9626) 2021-03-16 12:41:41 +00:00
test_saml.py Record the SSO Auth Provider in the login token (#9510) 2021-03-04 14:44:22 +00:00
test_stats.py Rename 'populate_stats_process_rooms_2' background job back to 'populate_stats_process_rooms' again (#8243) 2020-09-08 11:05:59 +01:00
test_sync.py Add a Synapse Module for configuring presence update routing (#9491) 2021-04-06 14:38:30 +01:00
test_typing.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_user_directory.py Fix style checking due to updated black. 2021-02-19 08:19:54 -05:00