SDK: rename confusing-named Room::query_keys_for_untracked_users

This also sends out the query for dirty users, so the name was misleading.
This commit is contained in:
Richard van der Hoff
2025-04-22 15:19:51 +01:00
parent 3eafefcf37
commit 82a0708b4e
2 changed files with 4 additions and 3 deletions

View File

@@ -199,7 +199,7 @@ impl<'a> IntoFuture for SendRawMessageLikeEvent<'a> {
// Note we do it all the time, because we might have sync'd members before
// sending a message (so didn't enter the above branch), but
// could have not query their keys ever.
room.query_keys_for_untracked_users().await?;
room.query_keys_for_untracked_or_dirty_users().await?;
room.preshare_room_key().await?;

View File

@@ -1911,9 +1911,10 @@ impl Room {
SendMessageLikeEvent::new(self, content)
}
/// Run /keys/query requests for all the non-tracked users.
/// Run /keys/query requests for all the non-tracked users, and for users
/// with an out-of-date device list.
#[cfg(feature = "e2e-encryption")]
async fn query_keys_for_untracked_users(&self) -> Result<()> {
async fn query_keys_for_untracked_or_dirty_users(&self) -> Result<()> {
let olm = self.client.olm_machine().await;
let olm = olm.as_ref().expect("Olm machine wasn't started");