Skip to content

Commit 71a1431

Browse files
committed
Fix max state group option
1 parent 8b0e9bf commit 71a1431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn get_initial_data_from_db(
8787
WHERE m.room_id = $1 {}
8888
"#,
8989
if max_state_group.is_some() {
90-
"AND state_group <= $2"
90+
"AND m.id <= $2"
9191
} else {
9292
""
9393
}

0 commit comments

Comments
 (0)