Fix max state group option

This commit is contained in:
Erik Johnston
2019-03-21 15:07:38 +00:00
parent 8b0e9bfd70
commit 71a143193c

View File

@@ -87,7 +87,7 @@ fn get_initial_data_from_db(
WHERE m.room_id = $1 {} WHERE m.room_id = $1 {}
"#, "#,
if max_state_group.is_some() { if max_state_group.is_some() {
"AND state_group <= $2" "AND m.id <= $2"
} else { } else {
"" ""
} }