mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 04:04:54 -04:00
Store all signatures on events rather than just dropping them
This commit is contained in:
parent
59cf6f5ec9
commit
f04b3d5042
4 changed files with 31 additions and 21 deletions
|
@ -470,12 +470,15 @@ class SQLBaseStore(object):
|
|||
select_event_sql = "SELECT * FROM events WHERE event_id = ?"
|
||||
|
||||
for i, ev in enumerate(events):
|
||||
signatures = self._get_event_origin_signatures_txn(
|
||||
signatures = self._get_event_signatures_txn(
|
||||
txn, ev.event_id,
|
||||
)
|
||||
|
||||
ev.signatures = {
|
||||
k: encode_base64(v) for k, v in signatures.items()
|
||||
n: {
|
||||
k: encode_base64(v) for k, v in s.items()
|
||||
}
|
||||
for n, s in signatures.items()
|
||||
}
|
||||
|
||||
prevs = self._get_prev_events_and_state(txn, ev.event_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue