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

@ -138,7 +138,7 @@ pub(crate) async fn sync_events_route(
device_list_updates.extend(
services
.users
.keys_changed(sender_user.as_ref(), since, None)
.keys_changed(&sender_user, since, None)
.map(ToOwned::to_owned)
.collect::<Vec<_>>()
.await,
@ -917,7 +917,8 @@ async fn load_joined_room(
device_list_updates.extend(
services
.users
.keys_changed(room_id.as_ref(), since, None)
.room_keys_changed(room_id, since, None)
.map(|(user_id, _)| user_id)
.map(ToOwned::to_owned)
.collect::<Vec<_>>()
.await,