MatrixSynapse/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
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
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
module_api
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
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
state
static
storage Add a storage method for returning all current presence from all users (#9650) 2021-03-25 10:34:23 +00:00
streams
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
notifier.py
python_dependencies.py
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