diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2022-09-21 16:31:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 15:31:53 +0000 |
commit | ccca14140a019c2e0430f95d78fa075efd8d535f (patch) | |
tree | 5a011a9ec69a798f69b0264413a4b536b7063076 /synapse/rest/client | |
parent | Implementation of MSC3882 login token request (#13722) (diff) | |
download | synapse-ccca14140a019c2e0430f95d78fa075efd8d535f.tar.xz |
Track device IDs for pushers (#13831)
Second half of the MSC3881 implementation
Diffstat (limited to 'synapse/rest/client')
-rw-r--r-- | synapse/rest/client/pusher.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/rest/client/pusher.py b/synapse/rest/client/pusher.py index c9f76125dc..975eef2144 100644 --- a/synapse/rest/client/pusher.py +++ b/synapse/rest/client/pusher.py @@ -57,7 +57,9 @@ class PushersRestServlet(RestServlet): for pusher in pusher_dicts: if self._msc3881_enabled: pusher["org.matrix.msc3881.enabled"] = pusher["enabled"] + pusher["org.matrix.msc3881.device_id"] = pusher["device_id"] del pusher["enabled"] + del pusher["device_id"] return 200, {"pushers": pusher_dicts} @@ -134,6 +136,7 @@ class PushersSetRestServlet(RestServlet): data=content["data"], profile_tag=content.get("profile_tag", ""), enabled=enabled, + device_id=requester.device_id, ) except PusherConfigException as pce: raise SynapseError( |