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

Commit

Permalink
Don't include redundant prev_state in new events
Browse files Browse the repository at this point in the history
  • Loading branch information
dakariakin committed Sep 14, 2022
1 parent 51a77e9 commit 9dd1c35
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion synapse/events/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ async def build(
"content": self.content,
"unsigned": self.unsigned,
"depth": depth,
"prev_state": [],
}

if self.is_state():
Expand Down
3 changes: 0 additions & 3 deletions synapse/federation/federation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,9 +906,6 @@ async def send_request(destination: str) -> Tuple[str, EventBase, RoomVersion]:
# The protoevent received over the JSON wire may not have all
# the required fields. Lets just gloss over that because
# there's some we never care about
if "prev_state" not in pdu_dict:
pdu_dict["prev_state"] = []

ev = builder.create_local_event_from_event_dict(
self._clock,
self.hostname,
Expand Down

0 comments on commit 9dd1c35

Please sign in to comment.