From 0fb3dedd1cd3b0766fa7378754480d52d38e8ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 17 Jun 2021 12:35:37 +0200 Subject: [PATCH] client: Fix compilation when the encryption feature is disabled --- matrix_sdk/src/client.rs | 1 + matrix_sdk_base/src/store/memory_store.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index 62f04092..2dff600b 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -2702,6 +2702,7 @@ impl Client { self.send(request, None).await } + #[cfg(feature = "encryption")] pub(crate) async fn send_verification_request( &self, request: matrix_sdk_base::crypto::OutgoingVerificationRequest, diff --git a/matrix_sdk_base/src/store/memory_store.rs b/matrix_sdk_base/src/store/memory_store.rs index 8bf11358..627d5b9a 100644 --- a/matrix_sdk_base/src/store/memory_store.rs +++ b/matrix_sdk_base/src/store/memory_store.rs @@ -560,13 +560,13 @@ impl StateStore for MemoryStore { #[cfg(test)] #[cfg(not(feature = "sled_state_store"))] mod test { - use matrix_sdk_common::{ + use matrix_sdk_test::async_test; + use ruma::{ api::client::r0::media::get_content_thumbnail::Method, identifiers::{event_id, mxc_uri, room_id, user_id, UserId}, receipt::ReceiptType, uint, }; - use matrix_sdk_test::async_test; use serde_json::json; use super::{MemoryStore, StateChanges};