Add more detail on which insertion event came through

This commit is contained in:
Eric Eastwood 2021-07-14 02:26:54 -05:00
parent 5970e3fdc7
commit bc133969e4
1 changed files with 4 additions and 2 deletions

View File

@ -1771,13 +1771,15 @@ class PersistEventsStore:
# Not a insertion event
return
logger.debug("_handle_insertion_event %s", event)
next_chunk_id = event.content.get(EventContentFields.MSC2716_NEXT_CHUNK_ID)
if next_chunk_id is None:
# Invalid insertion event without next chunk ID
return
logger.debug(
"_handle_insertion_event (next_chunk_id=%s) %s", next_chunk_id, event
)
# Keep track of the insertion event and the chunk ID
self.db_pool.simple_insert_txn(
txn,