split keys_changed for stronger-type overloads

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-22 04:03:07 +00:00 committed by strawberry
parent 0e0438e1f9
commit a74461fc9a
5 changed files with 27 additions and 10 deletions

View file

@ -232,7 +232,7 @@ pub(crate) async fn get_key_changes_route(
device_list_updates.extend(
services
.users
.keys_changed(sender_user.as_str(), from, Some(to))
.keys_changed(sender_user, from, Some(to))
.map(ToOwned::to_owned)
.collect::<Vec<_>>()
.await,
@ -244,7 +244,8 @@ pub(crate) async fn get_key_changes_route(
device_list_updates.extend(
services
.users
.keys_changed(room_id.as_str(), from, Some(to))
.room_keys_changed(room_id, from, Some(to))
.map(|(user_id, _)| user_id)
.map(ToOwned::to_owned)
.collect::<Vec<_>>()
.await,