@@ -776,11 +776,9 @@ public protocol ClientProtocol : AnyObject {
776
776
func loginWithOidcCallback(authorizationData: OidcAuthorizationData, callbackUrl: String) async throws
777
777
778
778
/**
779
- * Log out the current user. This method returns an optional URL that
780
- * should be presented to the user to complete logout (in the case of
781
- * Session having been authenticated using OIDC).
779
+ * Log the current user out.
782
780
*/
783
- func logout() async throws -> String?
781
+ func logout() async throws
784
782
785
783
func notificationClient(processSetup: NotificationProcessSetup) async throws -> NotificationClient
786
784
@@ -1643,11 +1641,9 @@ open func loginWithOidcCallback(authorizationData: OidcAuthorizationData, callba
1643
1641
}
1644
1642
1645
1643
/**
1646
- * Log out the current user. This method returns an optional URL that
1647
- * should be presented to the user to complete logout (in the case of
1648
- * Session having been authenticated using OIDC).
1644
+ * Log the current user out.
1649
1645
*/
1650
- open func logout()async throws -> String? {
1646
+ open func logout()async throws {
1651
1647
return
1652
1648
try await uniffiRustCallAsync(
1653
1649
rustFutureFunc: {
@@ -1656,10 +1652,10 @@ open func logout()async throws -> String? {
1656
1652
1657
1653
)
1658
1654
},
1659
- pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer ,
1660
- completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer ,
1661
- freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer ,
1662
- liftFunc: FfiConverterOptionString.lift ,
1655
+ pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void ,
1656
+ completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void ,
1657
+ freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void ,
1658
+ liftFunc: { $0 } ,
1663
1659
errorHandler: FfiConverterTypeClientError.lift
1664
1660
)
1665
1661
}
@@ -12641,11 +12637,12 @@ public struct CreateRoomParameters {
12641
12637
public var avatar: String?
12642
12638
public var powerLevelContentOverride: PowerLevels?
12643
12639
public var joinRuleOverride: JoinRule?
12640
+ public var historyVisibilityOverride: RoomHistoryVisibility?
12644
12641
public var canonicalAlias: String?
12645
12642
12646
12643
// Default memberwise initializers are never public by default, so we
12647
12644
// declare one manually.
12648
- public init(name: String?, topic: String? = nil, isEncrypted: Bool, isDirect: Bool = false, visibility: RoomVisibility, preset: RoomPreset, invite: [String]? = nil, avatar: String? = nil, powerLevelContentOverride: PowerLevels? = nil, joinRuleOverride: JoinRule? = nil, canonicalAlias: String? = nil) {
12645
+ public init(name: String?, topic: String? = nil, isEncrypted: Bool, isDirect: Bool = false, visibility: RoomVisibility, preset: RoomPreset, invite: [String]? = nil, avatar: String? = nil, powerLevelContentOverride: PowerLevels? = nil, joinRuleOverride: JoinRule? = nil, historyVisibilityOverride: RoomHistoryVisibility? = nil, canonicalAlias: String? = nil) {
12649
12646
self.name = name
12650
12647
self.topic = topic
12651
12648
self.isEncrypted = isEncrypted
@@ -12656,6 +12653,7 @@ public struct CreateRoomParameters {
12656
12653
self.avatar = avatar
12657
12654
self.powerLevelContentOverride = powerLevelContentOverride
12658
12655
self.joinRuleOverride = joinRuleOverride
12656
+ self.historyVisibilityOverride = historyVisibilityOverride
12659
12657
self.canonicalAlias = canonicalAlias
12660
12658
}
12661
12659
}
@@ -12694,6 +12692,9 @@ extension CreateRoomParameters: Equatable, Hashable {
12694
12692
if lhs.joinRuleOverride != rhs.joinRuleOverride {
12695
12693
return false
12696
12694
}
12695
+ if lhs.historyVisibilityOverride != rhs.historyVisibilityOverride {
12696
+ return false
12697
+ }
12697
12698
if lhs.canonicalAlias != rhs.canonicalAlias {
12698
12699
return false
12699
12700
}
@@ -12711,6 +12712,7 @@ extension CreateRoomParameters: Equatable, Hashable {
12711
12712
hasher.combine(avatar)
12712
12713
hasher.combine(powerLevelContentOverride)
12713
12714
hasher.combine(joinRuleOverride)
12715
+ hasher.combine(historyVisibilityOverride)
12714
12716
hasher.combine(canonicalAlias)
12715
12717
}
12716
12718
}
@@ -12730,6 +12732,7 @@ public struct FfiConverterTypeCreateRoomParameters: FfiConverterRustBuffer {
12730
12732
avatar: FfiConverterOptionString.read(from: &buf),
12731
12733
powerLevelContentOverride: FfiConverterOptionTypePowerLevels.read(from: &buf),
12732
12734
joinRuleOverride: FfiConverterOptionTypeJoinRule.read(from: &buf),
12735
+ historyVisibilityOverride: FfiConverterOptionTypeRoomHistoryVisibility.read(from: &buf),
12733
12736
canonicalAlias: FfiConverterOptionString.read(from: &buf)
12734
12737
)
12735
12738
}
@@ -12745,6 +12748,7 @@ public struct FfiConverterTypeCreateRoomParameters: FfiConverterRustBuffer {
12745
12748
FfiConverterOptionString.write(value.avatar, into: &buf)
12746
12749
FfiConverterOptionTypePowerLevels.write(value.powerLevelContentOverride, into: &buf)
12747
12750
FfiConverterOptionTypeJoinRule.write(value.joinRuleOverride, into: &buf)
12751
+ FfiConverterOptionTypeRoomHistoryVisibility.write(value.historyVisibilityOverride, into: &buf)
12748
12752
FfiConverterOptionString.write(value.canonicalAlias, into: &buf)
12749
12753
}
12750
12754
}
@@ -30456,6 +30460,27 @@ fileprivate struct FfiConverterOptionTypePushFormat: FfiConverterRustBuffer {
30456
30460
}
30457
30461
}
30458
30462
30463
+ fileprivate struct FfiConverterOptionTypeRoomHistoryVisibility: FfiConverterRustBuffer {
30464
+ typealias SwiftType = RoomHistoryVisibility?
30465
+
30466
+ public static func write(_ value: SwiftType, into buf: inout [UInt8]) {
30467
+ guard let value = value else {
30468
+ writeInt(&buf, Int8(0))
30469
+ return
30470
+ }
30471
+ writeInt(&buf, Int8(1))
30472
+ FfiConverterTypeRoomHistoryVisibility.write(value, into: &buf)
30473
+ }
30474
+
30475
+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {
30476
+ switch try readInt(&buf) as Int8 {
30477
+ case 0: return nil
30478
+ case 1: return try FfiConverterTypeRoomHistoryVisibility.read(from: &buf)
30479
+ default: throw UniffiInternalError.unexpectedOptionalTag
30480
+ }
30481
+ }
30482
+ }
30483
+
30459
30484
fileprivate struct FfiConverterOptionTypeRoomNotificationMode: FfiConverterRustBuffer {
30460
30485
typealias SwiftType = RoomNotificationMode?
30461
30486
@@ -32088,7 +32113,7 @@ private var initializationResult: InitializationResult = {
32088
32113
if (uniffi_matrix_sdk_ffi_checksum_method_client_login_with_oidc_callback() != 35005) {
32089
32114
return InitializationResult.apiChecksumMismatch
32090
32115
}
32091
- if (uniffi_matrix_sdk_ffi_checksum_method_client_logout() != 7576 ) {
32116
+ if (uniffi_matrix_sdk_ffi_checksum_method_client_logout() != 42911 ) {
32092
32117
return InitializationResult.apiChecksumMismatch
32093
32118
}
32094
32119
if (uniffi_matrix_sdk_ffi_checksum_method_client_notification_client() != 37308) {
0 commit comments