diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-26 09:22:58 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-26 09:22:58 +0100 |
commit | be6abdff19ce8dcc5b5d727aba0142f9c1aae2ec (patch) | |
tree | 6121637f97bc19e8ef882939b82fdb323f728af4 /synapse/storage/stream.py | |
parent | The landing URL is now '#/' which actually points to homeController (diff) | |
download | synapse-be6abdff19ce8dcc5b5d727aba0142f9c1aae2ec.tar.xz |
Order 'get_recent_events_for_room' correctly.
Diffstat (limited to 'synapse/storage/stream.py')
-rw-r--r-- | synapse/storage/stream.py | 2 |
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( |