Skip to content
Snippets Groups Projects
Commit be6abdff authored by Erik Johnston's avatar Erik Johnston
Browse files

Order 'get_recent_events_for_room' correctly.

parent 95839212
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment