Revert to sending the same data type as before

pull/2109/head
Erik Johnston 2017-04-10 10:07:18 +01:00
parent f8434db549
commit 8c5f03cec7
1 changed files with 2 additions and 2 deletions

View File

@ -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)