summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-11 10:07:27 +0000
committerErik Johnston <erik@matrix.org>2016-02-11 10:07:27 +0000
commit0eff7405239c794d4c000ee93c0e38a87ea2b1bd (patch)
tree9bf22f9ed7cc823c744b490789811309870f0190 /synapse/handlers/room.py
parentAdd some paranoia logging (diff)
downloadsynapse-0eff7405239c794d4c000ee93c0e38a87ea2b1bd.tar.xz
Return events in correct order for /events
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index a8e3a9029c..b2de2cd0c0 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -1061,6 +1061,7 @@ class RoomEventSource(object):
                 from_key=from_key,
                 to_key=to_key,
                 limit=limit or 10,
+                order='ASC',
             )
 
             events = list(room_events)