Don't return outliers when we get recent events for rooms.

This commit is contained in:
Erik Johnston 2014-11-27 16:38:50 +00:00
parent 027542e2e5
commit 1505055334
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ class StreamStore(SQLBaseStore):
sql = (
"SELECT *, (%(redacted)s) AS redacted FROM events "
"WHERE room_id = ? AND stream_ordering <= ? "
"WHERE room_id = ? AND stream_ordering <= ? AND outlier = 0 "
"ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ? "
) % {
"redacted": del_sql,