split keys_changed for stronger-type overloads

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2024-10-26 18:50:29 -04:00
1 parent 0e0438e1f9
commit a74461fc9a
5 files changed
+27 -10

No files matched your search

+3 -2
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,