diff options
author | Jorik Schellekens <joriks@matrix.org> | 2019-09-05 14:41:04 +0100 |
---|---|---|
committer | Jorik Schellekens <joriks@matrix.org> | 2019-09-05 14:42:37 +0100 |
commit | 1d65292e94077390af0ad9c5ee8cd8b0db9b357c (patch) | |
tree | 4f7724f96634cbb1583754fdcaface62dccd84be /synapse/federation/units.py | |
parent | Remove bind_email and bind_msisdn (#5964) (diff) | |
download | synapse-1d65292e94077390af0ad9c5ee8cd8b0db9b357c.tar.xz |
Link the send loop with the edus contexts
The contexts were being filtered too early so the send loop wasn't being linked to them unless the destination was whitelisted.
Diffstat (limited to 'synapse/federation/units.py')
-rw-r--r-- | synapse/federation/units.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/federation/units.py b/synapse/federation/units.py index aa84621206..b4d743cde7 100644 --- a/synapse/federation/units.py +++ b/synapse/federation/units.py @@ -41,6 +41,9 @@ class Edu(JsonEncodedObject): def get_context(self): return getattr(self, "content", {}).get("org.matrix.opentracing_context", "{}") + def strip_context(self): + getattr(self, "content", {})["org.matrix.opentracing_context"] = "{}" + class Transaction(JsonEncodedObject): """ A transaction is a list of Pdus and Edus to be sent to a remote home |