From 5bf4fa0fc47664bf8089ad36e70a2b2f746386eb Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 1 Jun 2018 11:43:03 +0100 Subject: [PATCH] Don't drop topo ordering when there is no chunk_id --- synapse/storage/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py index 34a5f7e3e7..baf3715c28 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py @@ -543,7 +543,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore): stream = row.stream_ordering internal = event.internal_metadata - if topo_order and chunk: + if topo_order: internal.before = str(RoomStreamToken(chunk, topo, stream - 1)) internal.after = str(RoomStreamToken(chunk, topo, stream)) internal.order = (