|
|
|
@ -177,14 +177,15 @@ class EventFederationStore(SQLBaseStore): |
|
|
|
|
retcols=["prev_event_id", "is_state"], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
hashes = self._get_prev_event_hashes_txn(txn, event_id) |
|
|
|
|
|
|
|
|
|
results = [] |
|
|
|
|
for d in res: |
|
|
|
|
hashes = self._get_event_reference_hashes_txn( |
|
|
|
|
txn, |
|
|
|
|
d["prev_event_id"] |
|
|
|
|
) |
|
|
|
|
edge_hash = self._get_event_reference_hashes_txn(txn, d["prev_event_id"]) |
|
|
|
|
edge_hash.update(hashes.get(d["prev_event_id"], {})) |
|
|
|
|
prev_hashes = { |
|
|
|
|
k: encode_base64(v) for k, v in hashes.items() |
|
|
|
|
k: encode_base64(v) |
|
|
|
|
for k, v in edge_hash.items() |
|
|
|
|
if k == "sha256" |
|
|
|
|
} |
|
|
|
|
results.append((d["prev_event_id"], prev_hashes, d["is_state"])) |
|
|
|
|