base: Avoid the Trait is not general enough issue again
parent
948c811d4b
commit
ae0d810fb0
|
@ -758,12 +758,12 @@ impl BaseClient {
|
||||||
if let Some(o) = self.olm_machine().await {
|
if let Some(o) = self.olm_machine().await {
|
||||||
if !room.is_encrypted() {
|
if !room.is_encrypted() {
|
||||||
// The room turned on encryption in this sync, we need
|
// The room turned on encryption in this sync, we need
|
||||||
// to get also all the existing users and mark them for
|
// to also get all the existing users and mark them for
|
||||||
// tracking.
|
// tracking.
|
||||||
let joined = self.store.get_joined_user_ids(&room_id).await?;
|
let joined = self.store.get_joined_user_ids(&room_id).await?;
|
||||||
let invited = self.store.get_invited_user_ids(&room_id).await?;
|
let invited = self.store.get_invited_user_ids(&room_id).await?;
|
||||||
|
|
||||||
let user_ids = joined.iter().chain(&invited);
|
let user_ids: Vec<&UserId> = joined.iter().chain(&invited).collect();
|
||||||
o.update_tracked_users(user_ids).await
|
o.update_tracked_users(user_ids).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue