mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Don't include redundant prev_state in new events (#13791)
This commit is contained in:
parent
44be42338e
commit
c802ef1411
1
changelog.d/13791.removal
Normal file
1
changelog.d/13791.removal
Normal file
@ -0,0 +1 @@
|
|||||||
|
Don't include redundant `prev_state` in new events. Contributed by Denis Kariakin (@dakariakin).
|
@ -167,7 +167,6 @@ class EventBuilder:
|
|||||||
"content": self.content,
|
"content": self.content,
|
||||||
"unsigned": self.unsigned,
|
"unsigned": self.unsigned,
|
||||||
"depth": depth,
|
"depth": depth,
|
||||||
"prev_state": [],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.is_state():
|
if self.is_state():
|
||||||
|
@ -906,9 +906,6 @@ class FederationClient(FederationBase):
|
|||||||
# The protoevent received over the JSON wire may not have all
|
# The protoevent received over the JSON wire may not have all
|
||||||
# the required fields. Lets just gloss over that because
|
# the required fields. Lets just gloss over that because
|
||||||
# there's some we never care about
|
# 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(
|
ev = builder.create_local_event_from_event_dict(
|
||||||
self._clock,
|
self._clock,
|
||||||
self.hostname,
|
self.hostname,
|
||||||
|
Loading…
Reference in New Issue
Block a user