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

pull/4/merge
Erik Johnston 10 years ago
parent 027542e2e5
commit 1505055334
  1. 2
      synapse/storage/stream.py

@ -283,7 +283,7 @@ class StreamStore(SQLBaseStore):
sql = ( sql = (
"SELECT *, (%(redacted)s) AS redacted FROM events " "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 ? " "ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ? "
) % { ) % {
"redacted": del_sql, "redacted": del_sql,

Loading…
Cancel
Save