forked-synapse/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 Add a background task to purge unused chain IDs. (#9542) 2021-03-09 11:22:25 -05:00
__init__.py Add type hints to user admin API. (#9521) 2021-03-03 08:09:39 -05:00
account_data.py Fix receipts or account data not being sent down sync (#9193) 2021-01-21 15:09:09 +00:00
appservice.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
cache.py Separate get_current_token into two. (#8113) 2020-08-19 10:39:31 +01:00
censor_events.py Remove frozendict_json_encoder and support frozendicts everywhere 2020-10-28 15:56:57 +00:00
client_ips.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
deviceinbox.py Add a type hints for service notices to the HomeServer object. (#9675) 2021-03-24 06:48:46 -04:00
devices.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
directory.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
e2e_room_keys.py Convert additional database code to async/await. (#8195) 2020-08-28 07:54:27 -04:00
end_to_end_keys.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
event_federation.py Fix bad naming of storage function (#9637) 2021-03-17 13:20:08 +00:00
event_push_actions.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
events_bg_updates.py Fix a bug in the background task for purging chain cover. (#9583) 2021-03-10 08:55:52 -05:00
events_forward_extremities.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
events_worker.py Prep work for removing outlier from internal_metadata (#9411) 2021-03-17 12:33:18 +00:00
events.py Prep work for removing outlier from internal_metadata (#9411) 2021-03-17 12:33:18 +00:00
filtering.py Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
group_server.py Add type hints to groups code. (#9393) 2021-02-17 08:41:47 -05:00
keys.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
media_repository.py Add type hints to user admin API. (#9521) 2021-03-03 08:09:39 -05:00
metrics.py Fix some typos. 2021-02-12 11:14:12 -05:00
monthly_active_users.py Add a type hints for service notices to the HomeServer object. (#9675) 2021-03-24 06:48:46 -04:00
openid.py Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
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 Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
purge_events.py Add a background task to purge unused chain IDs. (#9542) 2021-03-09 11:22:25 -05:00
push_rule.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
pusher.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
receipts.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
registration.py Consistently check whether a password may be set for a user. (#9636) 2021-03-18 12:54:08 -04:00
rejections.py Convert simple_select_one and simple_select_one_onecol to async (#8162) 2020-08-26 07:19:32 -04:00
relations.py Convert additional databases to async/await (#8199) 2020-09-01 09:21:48 -04:00
room.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
roommember.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
search.py Add type hints to various handlers. (#9223) 2021-01-26 10:50:21 -05:00
signatures.py Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
state_deltas.py Fix some typos. 2021-02-12 11:14:12 -05:00
state.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
stats.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
stream.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
tags.py Allow moving account data and receipts streams off master (#9104) 2021-01-18 15:47:59 +00:00
transactions.py Fix federation stall on concurrent access errors (#9639) 2021-03-23 13:52:30 +00:00
ui_auth.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
user_directory.py Remove cache for get_shared_rooms_for_users (#9416) 2021-02-22 16:52:45 +00:00
user_erasure_store.py Fixed a bug with reactivating users with the admin API (#8362) 2020-09-22 18:19:01 +01:00