From 0c9f95cbf63368ff0735041ba884ae33be473bd9 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 5 Jan 2024 13:17:32 +0000 Subject: [PATCH] Break --- synapse/handlers/room.py | 1 - 1 file changed, 1 deletion(-) diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 41b00a5cf7b..8a97d6cc645 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -1745,7 +1745,6 @@ async def get_new_events( # We know stream_ordering must be not None here, as its been # persisted, but mypy doesn't know that events.sort(key=lambda e: cast(int, e.internal_metadata.stream_ordering)) - if limit: events[:] = events[:limit]