diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2022-09-21 15:39:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 14:39:01 +0000 |
commit | 8ae42ab8fa3c6b52d74c24daa7ca75a478fa4fbb (patch) | |
tree | deb3a81241a31a811c26e5bfd64ac56cfc1e83aa /synapse/push/__init__.py | |
parent | Add cache invalidation across workers to module API (#13667) (diff) | |
download | synapse-8ae42ab8fa3c6b52d74c24daa7ca75a478fa4fbb.tar.xz |
Support enabling/disabling pushers (from MSC3881) (#13799)
Partial implementation of MSC3881
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 57c4d70466..ac99d35a7e 100644 --- a/synapse/push/__init__.py +++ b/synapse/push/__init__.py @@ -116,6 +116,7 @@ class PusherConfig: last_stream_ordering: int last_success: Optional[int] failing_since: Optional[int] + enabled: bool def as_dict(self) -> Dict[str, Any]: """Information that can be retrieved about a pusher after creation.""" @@ -128,6 +129,7 @@ class PusherConfig: "lang": self.lang, "profile_tag": self.profile_tag, "pushkey": self.pushkey, + "enabled": self.enabled, } |