From ae0d810fb0d352b45872779c5342913794085e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 21 Jan 2021 14:03:41 +0100 Subject: [PATCH] base: Avoid the Trait is not general enough issue again --- matrix_sdk_base/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_sdk_base/src/client.rs b/matrix_sdk_base/src/client.rs index b406e5ba..fff874fe 100644 --- a/matrix_sdk_base/src/client.rs +++ b/matrix_sdk_base/src/client.rs @@ -758,12 +758,12 @@ impl BaseClient { if let Some(o) = self.olm_machine().await { if !room.is_encrypted() { // 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. let joined = self.store.get_joined_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 }