diff --git a/crates/matrix-sdk/src/lib.rs b/crates/matrix-sdk/src/lib.rs index 370061fa8..0c7864d3a 100644 --- a/crates/matrix-sdk/src/lib.rs +++ b/crates/matrix-sdk/src/lib.rs @@ -80,7 +80,7 @@ pub use http_client::TransmissionProgress; #[cfg(all(feature = "e2e-encryption", feature = "sqlite"))] pub use matrix_sdk_sqlite::SqliteCryptoStore; #[cfg(feature = "sqlite")] -pub use matrix_sdk_sqlite::SqliteStateStore; +pub use matrix_sdk_sqlite::{SqliteEventCacheStore, SqliteStateStore}; pub use media::Media; pub use pusher::Pusher; pub use room::Room; diff --git a/labs/multiverse/src/main.rs b/labs/multiverse/src/main.rs index 4b3c1d519..f0deb9974 100644 --- a/labs/multiverse/src/main.rs +++ b/labs/multiverse/src/main.rs @@ -25,7 +25,7 @@ use matrix_sdk::{ events::room::message::{MessageType, RoomMessageEventContent}, MilliSecondsSinceUnixEpoch, OwnedRoomId, RoomId, }, - AuthSession, Client, ServerName, SqliteCryptoStore, SqliteStateStore, + AuthSession, Client, ServerName, SqliteCryptoStore, SqliteEventCacheStore, SqliteStateStore, }; use matrix_sdk_ui::{ room_list_service::{self, filters::new_filter_non_left}, @@ -949,10 +949,11 @@ async fn configure_client(server_name: String, config_path: String) -> anyhow::R let mut client_builder = Client::builder() .store_config( StoreConfig::new("multiverse".to_owned()) - .crypto_store( - SqliteCryptoStore::open(config_path.join("crypto.sqlite"), None).await?, - ) - .state_store(SqliteStateStore::open(config_path.join("state.sqlite"), None).await?), + .crypto_store(SqliteCryptoStore::open(config_path.join("crypto"), None).await?) + .state_store(SqliteStateStore::open(config_path.join("state"), None).await?) + .event_cache_store( + SqliteEventCacheStore::open(config_path.join("cache"), None).await?, + ), ) .server_name(&server_name) .with_encryption_settings(EncryptionSettings {