diff --git a/crates/ruma-state-res/src/lib.rs b/crates/ruma-state-res/src/lib.rs index 9846e1fd..fc28084b 100644 --- a/crates/ruma-state-res/src/lib.rs +++ b/crates/ruma-state-res/src/lib.rs @@ -527,11 +527,7 @@ where if let Ok(depth) = get_mainline_depth(Some(event), &mainline_map, &fetch_event) { order_map.insert( ev_id, - ( - depth, - fetch_event(ev_id).map(|ev| ev.origin_server_ts()), - ev_id, // TODO should this be a &str to sort lexically?? - ), + (depth, fetch_event(ev_id).map(|ev| ev.origin_server_ts()), ev_id), ); } }