diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-12-01 15:04:00 +0000 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-12-13 16:49:39 +0000 |
commit | 473d1a399e6af1d39219ead6b9d81ca51b981185 (patch) | |
tree | 518783c85a5059ab3411eaa9ab04a0c6975a66df | |
parent | Feed one-time key counts and unused fallback keys through the transaction (diff) | |
download | synapse-473d1a399e6af1d39219ead6b9d81ca51b981185.tar.xz |
Emit the one-time key counts and fallback keys over federation
-rw-r--r-- | synapse/appservice/api.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py index d77effebfa..d62871bb07 100644 --- a/synapse/appservice/api.py +++ b/synapse/appservice/api.py @@ -249,6 +249,16 @@ class ApplicationServiceApi(SimpleHttpClient): } ) + if service.msc3202_transaction_extensions: + if one_time_key_counts: + body[ + "org.matrix.msc3202.device_one_time_key_counts" + ] = one_time_key_counts + if unused_fallback_keys: + body[ + "org.matrix.msc3202.device_unused_fallback_keys" + ] = unused_fallback_keys + try: await self.put_json( uri=uri, |