mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
SYN-103: Remove "origin" and "destination" keys from edus
This commit is contained in:
parent
d085807070
commit
8d8a133c89
4 changed files with 4 additions and 14 deletions
|
@ -122,11 +122,10 @@ class Edu(JsonEncodedObject):
|
|||
"edu_type",
|
||||
]
|
||||
|
||||
# TODO: SYN-103: Remove "origin" and "destination" keys.
|
||||
# internal_keys = [
|
||||
# "origin",
|
||||
# "destination",
|
||||
# ]
|
||||
internal_keys = [
|
||||
"origin",
|
||||
"destination",
|
||||
]
|
||||
|
||||
|
||||
class Transaction(JsonEncodedObject):
|
||||
|
|
|
@ -218,9 +218,6 @@ class FederationTestCase(unittest.TestCase):
|
|||
"pdus": [],
|
||||
"edus": [
|
||||
{
|
||||
# TODO: SYN-103: Remove "origin" and "destination"
|
||||
"origin": "test",
|
||||
"destination": "remote",
|
||||
"edu_type": "m.test",
|
||||
"content": {"testing": "content here"},
|
||||
}
|
||||
|
|
|
@ -44,9 +44,6 @@ def _expect_edu(destination, edu_type, content, origin="test"):
|
|||
"pdus": [],
|
||||
"edus": [
|
||||
{
|
||||
# TODO: SYN-103: Remove "origin" and "destination" keys.
|
||||
"origin": origin,
|
||||
"destination": destination,
|
||||
"edu_type": edu_type,
|
||||
"content": content,
|
||||
}
|
||||
|
|
|
@ -33,9 +33,6 @@ def _expect_edu(destination, edu_type, content, origin="test"):
|
|||
"pdus": [],
|
||||
"edus": [
|
||||
{
|
||||
# TODO: SYN-103: Remove "origin" and "destination" keys.
|
||||
"origin": origin,
|
||||
"destination": destination,
|
||||
"edu_type": edu_type,
|
||||
"content": content,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue