synapse-product/synapse
Andrew Morgan fae81f2f68
Add a storage method for returning all current presence from all users (#9650)
Split off from https://github.com/matrix-org/synapse/pull/9491

Adds a storage method for getting the current presence of all local users, optionally excluding those that are offline. This will be used by the code in #9491 when a PresenceRouter module informs Synapse that a given user should have `"ALL"` user presence updates routed to them. Specifically, it is used here: b588f16e39/synapse/handlers/presence.py (L1131-L1133)

Note that there is a `get_all_presence_updates` function just above. That function is intended to walk up the table through stream IDs, and is primarily used by the presence replication stream. I could possibly make use of it in the PresenceRouter-related code, but it would be a bit of a bodge.
2021-03-25 10:34:23 +00:00
..
_scripts Strip trailing / from server_url in register_new_matrix_user (#8823) 2020-11-26 10:57:26 +00:00
api Merge branch 'develop' into babolivier/msc3026 2021-03-19 16:12:40 +01:00
app Fix lint 2021-03-19 16:11:08 +01:00
appservice Add ResponseCache tests. (#9458) 2021-03-08 14:00:07 -05:00
config Increase default join burst ratelimiting (#9674) 2021-03-23 14:52:20 +00:00
crypto Enable addtional flake8-bugbear linting checks. (#9659) 2021-03-24 09:34:30 -04:00
events Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00
federation Fixed undefined variable error in catchup (#9664) 2021-03-24 16:12:47 +00:00
groups Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
handlers Spaces summary: call out to other servers (#9653) 2021-03-24 12:45:39 +00:00
http Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
logging Enable addtional flake8-bugbear linting checks. (#9659) 2021-03-24 09:34:30 -04:00
metrics Fix additional type hints from Twisted upgrade. (#9518) 2021-03-03 15:47:38 -05:00
module_api Record the SSO Auth Provider in the login token (#9510) 2021-03-04 14:44:22 +00:00
push Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
replication Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
res/templates Support not providing an IdP icon when choosing a username. (#9440) 2021-02-19 07:48:46 -05:00
rest Add a type hints for service notices to the HomeServer object. (#9675) 2021-03-24 06:48:46 -04:00
server_notices Add a type hints for service notices to the HomeServer object. (#9675) 2021-03-24 06:48:46 -04:00
spam_checker_api Combine SpamCheckerApi with the more generic ModuleApi. (#8464) 2020-10-07 12:03:26 +01:00
state Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Add a storage method for returning all current presence from all users (#9650) 2021-03-25 10:34:23 +00:00
streams Make token serializing/deserializing async (#8427) 2020-09-30 20:29:19 +01:00
util Enable addtional flake8-bugbear linting checks. (#9659) 2021-03-24 09:34:30 -04:00
__init__.py 1.30.0 2021-03-22 13:15:55 +00:00
event_auth.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
notifier.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
python_dependencies.py Add a comment about systemd-python. (#9464) 2021-02-23 13:42:36 +00:00
secrets.py Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00
server.py Add a type hints for service notices to the HomeServer object. (#9675) 2021-03-24 06:48:46 -04:00
types.py Convert Requester to attrs (#9586) 2021-03-10 18:15:56 +00:00
visibility.py Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00