MatrixSynapse/synapse/storage/databases/main
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
..
schema
__init__.py
account_data.py
appservice.py
cache.py
censor_events.py
client_ips.py
deviceinbox.py
devices.py
directory.py
e2e_room_keys.py
end_to_end_keys.py
event_federation.py
event_push_actions.py
events.py
events_bg_updates.py
events_forward_extremities.py
events_worker.py
filtering.py
group_server.py
keys.py
media_repository.py
metrics.py
monthly_active_users.py
openid.py
presence.py Add a storage method for returning all current presence from all users (#9650) 2021-03-25 10:34:23 +00:00
profile.py
purge_events.py
push_rule.py
pusher.py
receipts.py
registration.py
rejections.py
relations.py
room.py
roommember.py
search.py
signatures.py
state.py
state_deltas.py
stats.py
stream.py
tags.py
transactions.py
ui_auth.py
user_directory.py
user_erasure_store.py