summary refs log tree commit diff
path: root/changelog.d/9650.misc
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2021-03-25 10:34:23 +0000
committerGitHub <noreply@github.com>2021-03-25 10:34:23 +0000
commitfae81f2f680242bcabbff12fa9c1eb72ba017b6f (patch)
tree5cfdf02da7990b593e5db73c64a5ca606db26f2a /changelog.d/9650.misc
parentFixed undefined variable error in catchup (#9664) (diff)
downloadsynapse-fae81f2f680242bcabbff12fa9c1eb72ba017b6f.tar.xz
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: https://github.com/matrix-org/synapse/blob/b588f16e391d664b11f43257eabf70663f0c6d59/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.
Diffstat (limited to 'changelog.d/9650.misc')
-rw-r--r--changelog.d/9650.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/9650.misc b/changelog.d/9650.misc
new file mode 100644
index 0000000000..d830ead70e
--- /dev/null
+++ b/changelog.d/9650.misc
@@ -0,0 +1 @@
+Add a storage method for pulling all current user presence state from the database.
\ No newline at end of file