mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
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:
@@ -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?;
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user