summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
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)