diff options
author | Erik Johnston <erik@matrix.org> | 2021-05-05 16:46:41 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-05-05 16:46:41 +0100 |
commit | b044860e5619114a8e84872e1d28bc6a18b5c0d8 (patch) | |
tree | 89d46a0938aca38af9a178e104a5e9627a7e59ee | |
parent | Merge branch 'erikj/smaller_events' into erikj/test_send (diff) | |
parent | Fix default (diff) | |
download | synapse-erikj/test_send.tar.xz |
Merge branch 'erikj/smaller_events' into erikj/test_send github/erikj/test_send erikj/test_send
-rw-r--r-- | synapse/events/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py index eb279579e7..c82e0d53ec 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py @@ -239,8 +239,8 @@ class _Signatures: def get_dict(self) -> JsonDict: return _decode_dict(self._signatures_bytes) - def get(self, server_name): - return self.get_dict().get(server_name) + def get(self, server_name, default=None): + return self.get_dict().get(server_name, default) def update(self, other: Union[JsonDict, "_Signatures"]): if isinstance(other, _Signatures): |