diff --git a/xmtp_mls/src/storage/encrypted_store/group_message.rs b/xmtp_mls/src/storage/encrypted_store/group_message.rs index 0b445e7a9..200958a7a 100644 --- a/xmtp_mls/src/storage/encrypted_store/group_message.rs +++ b/xmtp_mls/src/storage/encrypted_store/group_message.rs @@ -221,7 +221,7 @@ pub struct MsgQueryArgs { pub delivery_status: Option, pub limit: Option, pub direction: Option, - content_types: Option>, + pub content_types: Option>, } impl DbConnection { diff --git a/xmtp_mls/src/storage/encrypted_store/mod.rs b/xmtp_mls/src/storage/encrypted_store/mod.rs index d072321c0..fa2cc4215 100644 --- a/xmtp_mls/src/storage/encrypted_store/mod.rs +++ b/xmtp_mls/src/storage/encrypted_store/mod.rs @@ -594,8 +594,12 @@ pub(crate) mod tests { let db_path = tmp_path(); let opts = StorageOption::Persistent(db_path.clone()); + #[cfg(not(target_arch = "wasm32"))] let db = native::NativeDb::new(&opts, Some(EncryptedMessageStore::generate_enc_key())).unwrap(); + #[cfg(target_arch = "wasm32")] + let db = wasm::WasmDb::new(&opts).await?; + let store = EncryptedMessageStore { db, opts }; store.db.validate(&store.opts).unwrap();