SSS: add TODOs

This commit is contained in:
Lambda 2025-05-29 20:04:38 +00:00
parent f9b2836405
commit d51aea7672

View file

@ -393,6 +393,7 @@ pub(crate) async fn sync_events_v5_route(
&all_joined_rooms,
)
.await?,
// TODO: only include this field when it has changed
device_one_time_keys_count: services()
.users
.count_one_time_keys(&sender_user, &sender_device)?,
@ -972,6 +973,12 @@ fn process_room(
return Ok(None);
};
// TODO: invalidate current_shortstatehash and send down all(?) state events
// if effective requested required_state changes between requests:
//
// > If new entries are added to required_state then the server must send
// > down matching current state events.
let need_scan = todo_room.required_state.all_events
|| todo_room
.required_state