summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-26 09:22:58 +0100
committerErik Johnston <erik@matrix.org>2014-08-26 09:22:58 +0100
commitbe6abdff19ce8dcc5b5d727aba0142f9c1aae2ec (patch)
tree6121637f97bc19e8ef882939b82fdb323f728af4 /synapse/storage
parentThe landing URL is now '#/' which actually points to homeController (diff)
downloadsynapse-be6abdff19ce8dcc5b5d727aba0142f9c1aae2ec.tar.xz
Order 'get_recent_events_for_room' correctly.
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/stream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py

index 87ae961ccd..3a17a723fe 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py
@@ -257,7 +257,7 @@ class StreamStore(SQLBaseStore): sql = ( "SELECT * FROM events " "WHERE room_id = ? AND stream_ordering <= ? " - "ORDER BY topological_ordering, stream_ordering DESC LIMIT ? " + "ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ? " ) rows = yield self._execute_and_decode(