summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-04-10 10:07:18 +0100
committerErik Johnston <erik@matrix.org>2017-04-10 10:07:18 +0100
commit8c5f03cec746a1414eab3a052b583d9053086d87 (patch)
treec051334f1d1210c70b2ba078dff297599bda9673 /synapse/federation
parentChange name (diff)
downloadsynapse-8c5f03cec746a1414eab3a052b583d9053086d87.tar.xz
Revert to sending the same data type as before
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/send_queue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/send_queue.py b/synapse/federation/send_queue.py
index df807e57a6..95fd20e434 100644
--- a/synapse/federation/send_queue.py
+++ b/synapse/federation/send_queue.py
@@ -447,10 +447,10 @@ class DeviceRow(BaseFederationRow, namedtuple("DeviceRow", (
 
     @staticmethod
     def from_data(data):
-        return DeviceRow(destination=data)
+        return DeviceRow(destination=data["destination"])
 
     def to_data(self):
-        return self.destination
+        return {"destination": self.destination}
 
     def add_to_buffer(self, buff):
         buff.device_destinations.add(self.destination)