diff --git a/matrix_sdk_base/src/client.rs b/matrix_sdk_base/src/client.rs index 57c2c1ab..ff91cfcd 100644 --- a/matrix_sdk_base/src/client.rs +++ b/matrix_sdk_base/src/client.rs @@ -1862,6 +1862,8 @@ impl BaseClient { } /// Get the olm machine. + #[cfg(feature = "encryption")] + #[cfg_attr(feature = "docs", doc(cfg(encryption)))] pub async fn olm_machine(&self) -> Option { let olm = self.olm.lock().await; olm.as_ref().cloned()