diff options
author | Erik Johnston <erikj@jki.re> | 2018-11-05 13:35:15 +0000 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2018-11-06 00:35:15 +1100 |
commit | bc80b3f454aa9b9ca8bc710ff502b83892ac0a91 (patch) | |
tree | da9af91ab5640b0124800a885a8f24767e2e54c7 /synapse/federation/transaction_queue.py | |
parent | Set the encoding to UTF8 in the default logconfig (#4138) (diff) | |
download | synapse-bc80b3f454aa9b9ca8bc710ff502b83892ac0a91.tar.xz |
Add helpers for getting prev and auth events (#4139)
* Add helpers for getting prev and auth events This is in preparation for allowing the event format to change between room versions.
Diffstat (limited to 'synapse/federation/transaction_queue.py')
-rw-r--r-- | synapse/federation/transaction_queue.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py index 3fdd63be95..099ace28c1 100644 --- a/synapse/federation/transaction_queue.py +++ b/synapse/federation/transaction_queue.py @@ -183,9 +183,7 @@ class TransactionQueue(object): # banned then it won't receive the event because it won't # be in the room after the ban. destinations = yield self.state.get_current_hosts_in_room( - event.room_id, latest_event_ids=[ - prev_id for prev_id, _ in event.prev_events - ], + event.room_id, latest_event_ids=event.prev_event_ids(), ) except Exception: logger.exception( |