synapse-product/synapse/config
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 Let synctl use a config directory. (#5904) 2019-08-28 15:55:58 +01:00
__main__.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
_base.py JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
_base.pyi JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
_util.py Fix validate_config on nested objects (#9054) 2021-01-08 14:23:04 +00:00
api.py Include m.room.create in invite_room_state for Spaces (#9710) 2021-03-30 14:03:17 +01:00
appservice.py Send some ephemeral events to appservices (#8437) 2020-10-15 12:33:28 -04:00
auth.py Parse ui_auth.session_timeout as a duration (instead of treating it as ms) (#9426) 2021-02-18 09:18:14 -05:00
cache.py Make it possible to use dmypy (#9692) 2021-03-26 16:49:46 +00:00
captcha.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
cas.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
consent_config.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
database.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
emailconfig.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
experimental.py Add an experimental room version to support restricted join rules. (#9717) 2021-03-31 16:39:08 -04:00
federation.py Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
groups.py Update the value of group_creation_prefix in sample config. (#8992) 2020-12-29 09:30:48 -05:00
homeserver.py Implement MSC2858 support (#9183) 2021-01-27 12:41:24 +00:00
jwt_config.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
key.py Enable flake8-bugbear, but disable most checks. (#9499) 2021-03-16 14:19:27 -04:00
logger.py Fix additional type hints. (#9543) 2021-03-09 07:41:32 -05:00
metrics.py Enable flake8-bugbear, but disable most checks. (#9499) 2021-03-16 14:19:27 -04:00
oidc_config.py Update the OIDC sample config (#9695) 2021-03-29 15:40:11 +01:00
password_auth_providers.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
push.py Clean up ShardedWorkerHandlingConfig (#9466) 2021-02-24 13:23:18 +00:00
ratelimiting.py Increase default join burst ratelimiting (#9674) 2021-03-23 14:52:20 +00:00
redis.py Update worker docs with recent enhancements (#7969) 2020-07-29 23:22:13 +01:00
registration.py Make sample config allowed_local_3pids regex stricter. (#9719) 2021-03-31 12:27:20 +00:00
repository.py Enable flake8-bugbear, but disable most checks. (#9499) 2021-03-16 14:19:27 -04:00
room_directory.py Fix some typos. 2021-02-12 11:14:12 -05:00
room.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
saml2_config.py Enable flake8-bugbear, but disable most checks. (#9499) 2021-03-16 14:19:27 -04:00
server_notices_config.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
server.py Add a Synapse Module for configuring presence update routing (#9491) 2021-04-06 14:38:30 +01:00
spam_checker.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
sso.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
stats.py Clean up config settings for stats (#9604) 2021-03-16 10:57:54 +00:00
third_party_event_rules.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
tls.py Enable mypy checking for unreachable code and fix instances. (#8432) 2020-10-01 08:09:18 -04:00
tracer.py Enable flake8-bugbear, but disable most checks. (#9499) 2021-03-16 14:19:27 -04:00
user_directory.py Clean up the user directory sample config section (#9385) 2021-02-22 11:44:31 +00:00
voip.py Add config linting script that checks for bool casing (#6203) 2019-10-23 13:22:54 +01:00
workers.py Clean up ShardedWorkerHandlingConfig (#9466) 2021-02-24 13:23:18 +00:00