@@ -2737,6 +2737,11 @@ public protocol ClientBuilderProtocol : AnyObject {
2737
2737
2738
2738
func crossProcessStoreLocksHolderName(holderName: String) -> ClientBuilder
2739
2739
2740
+ /**
2741
+ * Set the trust requirement to be used when decrypting events.
2742
+ */
2743
+ func decryptionSettings(decryptionSettings: DecryptionSettings) -> ClientBuilder
2744
+
2740
2745
func disableAutomaticTokenRefresh() -> ClientBuilder
2741
2746
2742
2747
/**
@@ -2767,11 +2772,6 @@ public protocol ClientBuilderProtocol : AnyObject {
2767
2772
*/
2768
2773
func requestConfig(config: RequestConfig) -> ClientBuilder
2769
2774
2770
- /**
2771
- * Set the trust requirement to be used when decrypting events.
2772
- */
2773
- func roomDecryptionTrustRequirement(trustRequirement: TrustRequirement) -> ClientBuilder
2774
-
2775
2775
/**
2776
2776
* Set the strategy to be used for picking recipient devices when sending
2777
2777
* an encrypted message.
@@ -3002,6 +3002,17 @@ open func crossProcessStoreLocksHolderName(holderName: String) -> ClientBuilder
3002
3002
FfiConverterString.lower(holderName),$0
3003
3003
)
3004
3004
})
3005
+ }
3006
+
3007
+ /**
3008
+ * Set the trust requirement to be used when decrypting events.
3009
+ */
3010
+ open func decryptionSettings(decryptionSettings: DecryptionSettings) -> ClientBuilder {
3011
+ return try! FfiConverterTypeClientBuilder.lift(try! rustCall() {
3012
+ uniffi_matrix_sdk_ffi_fn_method_clientbuilder_decryption_settings(self.uniffiClonePointer(),
3013
+ FfiConverterTypeDecryptionSettings_lower(decryptionSettings),$0
3014
+ )
3015
+ })
3005
3016
}
3006
3017
3007
3018
open func disableAutomaticTokenRefresh() -> ClientBuilder {
@@ -3076,17 +3087,6 @@ open func requestConfig(config: RequestConfig) -> ClientBuilder {
3076
3087
FfiConverterTypeRequestConfig.lower(config),$0
3077
3088
)
3078
3089
})
3079
- }
3080
-
3081
- /**
3082
- * Set the trust requirement to be used when decrypting events.
3083
- */
3084
- open func roomDecryptionTrustRequirement(trustRequirement: TrustRequirement) -> ClientBuilder {
3085
- return try! FfiConverterTypeClientBuilder.lift(try! rustCall() {
3086
- uniffi_matrix_sdk_ffi_fn_method_clientbuilder_room_decryption_trust_requirement(self.uniffiClonePointer(),
3087
- FfiConverterTypeTrustRequirement_lower(trustRequirement),$0
3088
- )
3089
- })
3090
3090
}
3091
3091
3092
3092
/**
@@ -37661,6 +37661,9 @@ private var initializationResult: InitializationResult = {
37661
37661
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_cross_process_store_locks_holder_name() != 46627) {
37662
37662
return InitializationResult.apiChecksumMismatch
37663
37663
}
37664
+ if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_decryption_settings() != 34715) {
37665
+ return InitializationResult.apiChecksumMismatch
37666
+ }
37664
37667
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_disable_automatic_token_refresh() != 43839) {
37665
37668
return InitializationResult.apiChecksumMismatch
37666
37669
}
@@ -37685,9 +37688,6 @@ private var initializationResult: InitializationResult = {
37685
37688
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_request_config() != 58783) {
37686
37689
return InitializationResult.apiChecksumMismatch
37687
37690
}
37688
- if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_room_decryption_trust_requirement() != 2776) {
37689
- return InitializationResult.apiChecksumMismatch
37690
- }
37691
37691
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_room_key_recipient_strategy() != 41183) {
37692
37692
return InitializationResult.apiChecksumMismatch
37693
37693
}
0 commit comments