summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2024-07-26 13:17:50 +0100
committerErik Johnston <erik@matrix.org>2024-07-26 13:17:50 +0100
commitb2edef56a2265fc1292339a01a9aea1176de4b59 (patch)
tree79155be059a48ee54a4e151a671349e2ceb96c3a
parentREVERT (diff)
downloadsynapse-b2edef56a2265fc1292339a01a9aea1176de4b59.tar.xz
LINT
-rw-r--r--synapse/handlers/sliding_sync.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py
index b88afc3db9..781e008daf 100644
--- a/synapse/handlers/sliding_sync.py
+++ b/synapse/handlers/sliding_sync.py
@@ -1841,6 +1841,7 @@ class SlidingSyncHandler:
         bump_stamp = None
         if timeline_events:
             for e in reversed(timeline_events):
+                assert e.internal_metadata.stream_ordering is not None
                 if (
                     e.type in DEFAULT_BUMP_EVENT_TYPES
                     and e.internal_metadata.stream_ordering > 0