mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 01:12:06 +00:00
Order 'get_recent_events_for_room' correctly.
This commit is contained in:
parent
95839212a7
commit
be6abdff19
@ -257,7 +257,7 @@ class StreamStore(SQLBaseStore):
|
|||||||
sql = (
|
sql = (
|
||||||
"SELECT * FROM events "
|
"SELECT * FROM events "
|
||||||
"WHERE room_id = ? AND stream_ordering <= ? "
|
"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(
|
rows = yield self._execute_and_decode(
|
||||||
|
Loading…
Reference in New Issue
Block a user