We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3710b52 commit 67f36aeCopy full SHA for 67f36ae
bindings/matrix-sdk-ffi/src/session_store.rs
@@ -55,15 +55,15 @@ mod sqlite_session_store {
55
/// capable of handling multiple users, however it is valid to use the
56
/// same path for both stores on a single session.
57
#[uniffi::constructor]
58
- pub fn new(data_path: String, cache_path: String) -> Self {
59
- Self {
+ pub fn new(data_path: String, cache_path: String) -> Arc<Self> {
+ Arc::new(Self {
60
paths: SessionPaths { data_path, cache_path },
61
passphrase: Zeroizing::new(None),
62
pool_max_size: None,
63
cache_size: None,
64
journal_size_limit: None,
65
system_is_memory_constrained: false,
66
- }
+ })
67
}
68
69
/// Set the passphrase for the stores given to
0 commit comments