Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 25cfe76

Browse files
committed
Don't include redundant prev_state in new events
1 parent 9772e36 commit 25cfe76

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

synapse/events/builder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ async def build(
167167
"content": self.content,
168168
"unsigned": self.unsigned,
169169
"depth": depth,
170-
"prev_state": [],
171170
}
172171

173172
if self.is_state():

synapse/federation/federation_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,9 +906,6 @@ async def send_request(destination: str) -> Tuple[str, EventBase, RoomVersion]:
906906
# The protoevent received over the JSON wire may not have all
907907
# the required fields. Lets just gloss over that because
908908
# there's some we never care about
909-
if "prev_state" not in pdu_dict:
910-
pdu_dict["prev_state"] = []
911-
912909
ev = builder.create_local_event_from_event_dict(
913910
self._clock,
914911
self.hostname,

0 commit comments

Comments
 (0)