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/push/__init__.py | |
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/push/__init__.py')
-rw-r--r-- | synapse/push/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py index ac99d35a7e..a0c760239d 100644 --- a/synapse/push/__init__.py +++ b/synapse/push/__init__.py @@ -117,6 +117,7 @@ class PusherConfig: last_success: Optional[int] failing_since: Optional[int] enabled: bool + device_id: Optional[str] def as_dict(self) -> Dict[str, Any]: """Information that can be retrieved about a pusher after creation.""" @@ -130,6 +131,7 @@ class PusherConfig: "profile_tag": self.profile_tag, "pushkey": self.pushkey, "enabled": self.enabled, + "device_id": self.device_id, } |