summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-01-17 14:23:51 +0000
committerGitHub <noreply@github.com>2020-01-17 14:23:51 +0000
commit3b72bb780a000dc58bb53899e5cba301cca2b8f4 (patch)
treeb72eee5d64ec2794d244f682a30c94bdc41fe9d6 /synapse/handlers
parentbump version to v1.9.0.dev1 (diff)
parentPrecise changelog (diff)
downloadsynapse-3b72bb780a000dc58bb53899e5cba301cca2b8f4.tar.xz
Merge pull request #6714 from matrix-org/babolivier/retention_select_event
Fix instantiation of message retention purge jobs
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/pagination.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/pagination.py b/synapse/handlers/pagination.py
index 00a6afc963..3ee6a091c5 100644
--- a/synapse/handlers/pagination.py
+++ b/synapse/handlers/pagination.py
@@ -156,7 +156,7 @@ class PaginationHandler(object):
 
             stream_ordering = yield self.store.find_first_stream_ordering_after_ts(ts)
 
-            r = yield self.store.get_room_event_after_stream_ordering(
+            r = yield self.store.get_room_event_before_stream_ordering(
                 room_id, stream_ordering,
             )
             if not r: