synapse-product/synapse/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
..
ui_auth UI Auth via SSO: redirect the user to an appropriate SSO. (#9081) 2021-01-12 17:38:03 +00:00
__init__.py Remove the deprecated Handlers object (#8494) 2020-10-09 07:24:34 -04:00
_base.py Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
account_data.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
account_validity.py Update mypy configuration: no_implicit_optional = True (#9742) 2021-04-05 09:10:18 -04:00
acme_issuing_service.py Add type hints to various handlers. (#9223) 2021-01-26 10:50:21 -05:00
acme.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
admin.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
appservice.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
auth.py Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
cas_handler.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
deactivate_account.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
device.py Add type hints to expiring cache. (#9730) 2021-04-06 08:58:18 -04:00
devicemessage.py Improve tracing for to device messages (#9686) 2021-04-01 17:08:21 +01:00
directory.py Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
e2e_keys.py Add type hints to expiring cache. (#9730) 2021-04-06 08:58:18 -04:00
e2e_room_keys.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
events.py Ratelimit cross-user key sharing requests. (#8957) 2021-02-19 13:20:34 -05:00
federation.py Add type hints to the federation handler and server. (#9743) 2021-04-06 07:21:57 -04:00
groups_local.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
identity.py Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
initial_sync.py Add ResponseCache tests. (#9458) 2021-03-08 14:00:07 -05:00
message.py Replace room_invite_state_types with room_prejoin_state (#9700) 2021-03-30 12:12:44 +01:00
oidc_handler.py Make it possible to use dmypy (#9692) 2021-03-26 16:49:46 +00:00
pagination.py Fix additional type hints. (#9543) 2021-03-09 07:41:32 -05:00
password_policy.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
presence.py Add a Synapse Module for configuring presence update routing (#9491) 2021-04-06 14:38:30 +01:00
profile.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
read_marker.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
receipts.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
register.py Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
room_list.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
room_member_worker.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
room_member.py Make RateLimiter class check for ratelimit overrides (#9711) 2021-03-30 12:06:09 +01:00
room.py Add ResponseCache tests. (#9458) 2021-03-08 14:00:07 -05:00
saml_handler.py Add support for stable MSC2858 API (#9617) 2021-03-16 11:21:26 +00:00
search.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
set_password.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
space_summary.py Spaces summary: call out to other servers (#9653) 2021-03-24 12:45:39 +00:00
sso.py Add support for stable MSC2858 API (#9617) 2021-03-16 11:21:26 +00:00
state_deltas.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
stats.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
sync.py Add type hints to expiring cache. (#9730) 2021-04-06 08:58:18 -04:00
typing.py Improve tracing for to device messages (#9686) 2021-04-01 17:08:21 +01:00
user_directory.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00