mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Revert to sending the same data type as before
This commit is contained in:
parent
f8434db549
commit
8c5f03cec7
@ -447,10 +447,10 @@ class DeviceRow(BaseFederationRow, namedtuple("DeviceRow", (
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_data(data):
|
def from_data(data):
|
||||||
return DeviceRow(destination=data)
|
return DeviceRow(destination=data["destination"])
|
||||||
|
|
||||||
def to_data(self):
|
def to_data(self):
|
||||||
return self.destination
|
return {"destination": self.destination}
|
||||||
|
|
||||||
def add_to_buffer(self, buff):
|
def add_to_buffer(self, buff):
|
||||||
buff.device_destinations.add(self.destination)
|
buff.device_destinations.add(self.destination)
|
||||||
|
Loading…
Reference in New Issue
Block a user