File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
crates/matrix-sdk/src/test_utils Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,23 @@ impl MockClientBuilder {
63
63
self
64
64
}
65
65
66
+ /// Enable the share history on invite feature for the Client.
67
+ #[ cfg( feature = "e2e-encryption" ) ]
68
+ pub fn enable_share_history_on_invite ( mut self ) -> Self {
69
+ self . builder = self . builder . with_enable_share_history_on_invite ( true ) ;
70
+ self
71
+ }
72
+
73
+ /// Use the given encryption settings with the test client.
74
+ #[ cfg( feature = "e2e-encryption" ) ]
75
+ pub fn with_encryption_settings (
76
+ mut self ,
77
+ settings : crate :: encryption:: EncryptionSettings ,
78
+ ) -> Self {
79
+ self . builder = self . builder . with_encryption_settings ( settings) ;
80
+ self
81
+ }
82
+
66
83
/// Set the cached server versions in the client.
67
84
pub fn server_versions ( mut self , versions : Vec < MatrixVersion > ) -> Self {
68
85
self . server_versions = ServerVersions :: Custom ( versions) ;
You can’t perform that action at this time.
0 commit comments