소스 검색

Don't include redundant prev_state in new events (#13791)

tags/v1.68.0rc1
Denis 1 년 전
committed by GitHub
부모
커밋
c802ef1411
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
3개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -0
      changelog.d/13791.removal
  2. +0
    -1
      synapse/events/builder.py
  3. +0
    -3
      synapse/federation/federation_client.py

+ 1
- 0
changelog.d/13791.removal 파일 보기

@@ -0,0 +1 @@
Don't include redundant `prev_state` in new events. Contributed by Denis Kariakin (@dakariakin).

+ 0
- 1
synapse/events/builder.py 파일 보기

@@ -167,7 +167,6 @@ class EventBuilder:
"content": self.content,
"unsigned": self.unsigned,
"depth": depth,
"prev_state": [],
}

if self.is_state():


+ 0
- 3
synapse/federation/federation_client.py 파일 보기

@@ -906,9 +906,6 @@ class FederationClient(FederationBase):
# 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,


불러오는 중...
취소
저장