client: Fix compilation when the encryption feature is disabled
parent
3cf843d24f
commit
0fb3dedd1c
|
@ -2702,6 +2702,7 @@ impl Client {
|
||||||
self.send(request, None).await
|
self.send(request, None).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "encryption")]
|
||||||
pub(crate) async fn send_verification_request(
|
pub(crate) async fn send_verification_request(
|
||||||
&self,
|
&self,
|
||||||
request: matrix_sdk_base::crypto::OutgoingVerificationRequest,
|
request: matrix_sdk_base::crypto::OutgoingVerificationRequest,
|
||||||
|
|
|
@ -560,13 +560,13 @@ impl StateStore for MemoryStore {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[cfg(not(feature = "sled_state_store"))]
|
#[cfg(not(feature = "sled_state_store"))]
|
||||||
mod test {
|
mod test {
|
||||||
use matrix_sdk_common::{
|
use matrix_sdk_test::async_test;
|
||||||
|
use ruma::{
|
||||||
api::client::r0::media::get_content_thumbnail::Method,
|
api::client::r0::media::get_content_thumbnail::Method,
|
||||||
identifiers::{event_id, mxc_uri, room_id, user_id, UserId},
|
identifiers::{event_id, mxc_uri, room_id, user_id, UserId},
|
||||||
receipt::ReceiptType,
|
receipt::ReceiptType,
|
||||||
uint,
|
uint,
|
||||||
};
|
};
|
||||||
use matrix_sdk_test::async_test;
|
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
use super::{MemoryStore, StateChanges};
|
use super::{MemoryStore, StateChanges};
|
||||||
|
|
Loading…
Reference in New Issue