@@ -717,6 +717,15 @@ public protocol ClientProtocol : AnyObject {
717
717
718
718
func removeAvatar() async throws
719
719
720
+ /**
721
+ * Empty the server version and unstable features cache.
722
+ *
723
+ * Since the SDK caches server capabilities (versions and unstable
724
+ * features), it's possible to have a stale entry in the cache. This
725
+ * functions makes it possible to force reset it.
726
+ */
727
+ func resetServerCapabilities() async throws
728
+
720
729
/**
721
730
* Resolves the given room alias to a room ID (and a list of servers), if
722
731
* possible.
@@ -1416,6 +1425,30 @@ open func removeAvatar()async throws {
1416
1425
)
1417
1426
}
1418
1427
1428
+ /**
1429
+ * Empty the server version and unstable features cache.
1430
+ *
1431
+ * Since the SDK caches server capabilities (versions and unstable
1432
+ * features), it's possible to have a stale entry in the cache. This
1433
+ * functions makes it possible to force reset it.
1434
+ */
1435
+ open func resetServerCapabilities()async throws {
1436
+ return
1437
+ try await uniffiRustCallAsync(
1438
+ rustFutureFunc: {
1439
+ uniffi_matrix_sdk_ffi_fn_method_client_reset_server_capabilities(
1440
+ self.uniffiClonePointer()
1441
+
1442
+ )
1443
+ },
1444
+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
1445
+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
1446
+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
1447
+ liftFunc: { $0 },
1448
+ errorHandler: FfiConverterTypeClientError.lift
1449
+ )
1450
+ }
1451
+
1419
1452
/**
1420
1453
* Resolves the given room alias to a room ID (and a list of servers), if
1421
1454
* possible.
@@ -1823,8 +1856,6 @@ public protocol ClientBuilderProtocol : AnyObject {
1823
1856
1824
1857
func serverNameOrHomeserverUrl(serverNameOrUrl: String) -> ClientBuilder
1825
1858
1826
- func serverVersions(versions: [String]) -> ClientBuilder
1827
-
1828
1859
/**
1829
1860
* Sets the path that the client will use to store its data once logged in.
1830
1861
* This path **must** be unique per session as the data stores aren't
@@ -2049,14 +2080,6 @@ open func serverNameOrHomeserverUrl(serverNameOrUrl: String) -> ClientBuilder {
2049
2080
FfiConverterString.lower(serverNameOrUrl),$0
2050
2081
)
2051
2082
})
2052
- }
2053
-
2054
- open func serverVersions(versions: [String]) -> ClientBuilder {
2055
- return try! FfiConverterTypeClientBuilder.lift(try! rustCall() {
2056
- uniffi_matrix_sdk_ffi_fn_method_clientbuilder_server_versions(self.uniffiClonePointer(),
2057
- FfiConverterSequenceString.lower(versions),$0
2058
- )
2059
- })
2060
2083
}
2061
2084
2062
2085
/**
@@ -25576,6 +25599,9 @@ private var initializationResult: InitializationResult {
25576
25599
if (uniffi_matrix_sdk_ffi_checksum_method_client_remove_avatar() != 29033) {
25577
25600
return InitializationResult.apiChecksumMismatch
25578
25601
}
25602
+ if (uniffi_matrix_sdk_ffi_checksum_method_client_reset_server_capabilities() != 39651) {
25603
+ return InitializationResult.apiChecksumMismatch
25604
+ }
25579
25605
if (uniffi_matrix_sdk_ffi_checksum_method_client_resolve_room_alias() != 14306) {
25580
25606
return InitializationResult.apiChecksumMismatch
25581
25607
}
@@ -25684,9 +25710,6 @@ private var initializationResult: InitializationResult {
25684
25710
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_server_name_or_homeserver_url() != 30022) {
25685
25711
return InitializationResult.apiChecksumMismatch
25686
25712
}
25687
- if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_server_versions() != 15644) {
25688
- return InitializationResult.apiChecksumMismatch
25689
- }
25690
25713
if (uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_session_path() != 49266) {
25691
25714
return InitializationResult.apiChecksumMismatch
25692
25715
}
0 commit comments