@@ -12461,11 +12461,6 @@ public func FfiConverterTypeOidcConfiguration_lower(_ value: OidcConfiguration)
12461
12461
12462
12462
12463
12463
public struct OidcCrossSigningResetInfo {
12464
- /**
12465
- * The error message we received from the homeserver after we attempted to
12466
- * reset the cross-signing keys.
12467
- */
12468
- public var error: String
12469
12464
/**
12470
12465
* The URL where the user can approve the reset of the cross-signing keys.
12471
12466
*/
@@ -12474,14 +12469,9 @@ public struct OidcCrossSigningResetInfo {
12474
12469
// Default memberwise initializers are never public by default, so we
12475
12470
// declare one manually.
12476
12471
public init(
12477
- /**
12478
- * The error message we received from the homeserver after we attempted to
12479
- * reset the cross-signing keys.
12480
- */error: String,
12481
12472
/**
12482
12473
* The URL where the user can approve the reset of the cross-signing keys.
12483
12474
*/approvalUrl: String) {
12484
- self.error = error
12485
12475
self.approvalUrl = approvalUrl
12486
12476
}
12487
12477
}
@@ -12490,17 +12480,13 @@ public struct OidcCrossSigningResetInfo {
12490
12480
12491
12481
extension OidcCrossSigningResetInfo: Equatable, Hashable {
12492
12482
public static func ==(lhs: OidcCrossSigningResetInfo, rhs: OidcCrossSigningResetInfo) -> Bool {
12493
- if lhs.error != rhs.error {
12494
- return false
12495
- }
12496
12483
if lhs.approvalUrl != rhs.approvalUrl {
12497
12484
return false
12498
12485
}
12499
12486
return true
12500
12487
}
12501
12488
12502
12489
public func hash(into hasher: inout Hasher) {
12503
- hasher.combine(error)
12504
12490
hasher.combine(approvalUrl)
12505
12491
}
12506
12492
}
@@ -12510,13 +12496,11 @@ public struct FfiConverterTypeOidcCrossSigningResetInfo: FfiConverterRustBuffer
12510
12496
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> OidcCrossSigningResetInfo {
12511
12497
return
12512
12498
try OidcCrossSigningResetInfo(
12513
- error: FfiConverterString.read(from: &buf),
12514
12499
approvalUrl: FfiConverterString.read(from: &buf)
12515
12500
)
12516
12501
}
12517
12502
12518
12503
public static func write(_ value: OidcCrossSigningResetInfo, into buf: inout [UInt8]) {
12519
- FfiConverterString.write(value.error, into: &buf)
12520
12504
FfiConverterString.write(value.approvalUrl, into: &buf)
12521
12505
}
12522
12506
}
@@ -16957,13 +16941,24 @@ public enum EventSendState {
16957
16941
*
16958
16942
* Happens only when the room key recipient strategy (as set by
16959
16943
* [`ClientBuilder::room_key_recipient_strategy`]) has
16960
- * [`error_on_verified_user_problem`](CollectStrategy::DeviceBasedStrategy::error_on_verified_user_problem) set.
16944
+ * [`error_on_verified_user_problem`](CollectStrategy::DeviceBasedStrategy::error_on_verified_user_problem)
16945
+ * set, or when using [`CollectStrategy::IdentityBasedStrategy`].
16961
16946
*/
16962
16947
case verifiedUserChangedIdentity(
16963
16948
/**
16964
16949
* The users that were previously verified, but are no longer
16965
16950
*/users: [String]
16966
16951
)
16952
+ /**
16953
+ * The user does not have cross-signing set up, but
16954
+ * [`CollectStrategy::IdentityBasedStrategy`] was used.
16955
+ */
16956
+ case crossSigningNotSetup
16957
+ /**
16958
+ * The current device is not verified, but
16959
+ * [`CollectStrategy::IdentityBasedStrategy`] was used.
16960
+ */
16961
+ case sendingFromUnverifiedDevice
16967
16962
/**
16968
16963
* The local event has been sent to the server, but unsuccessfully: The
16969
16964
* sending has failed.
@@ -17003,10 +16998,14 @@ public struct FfiConverterTypeEventSendState: FfiConverterRustBuffer {
17003
16998
case 3: return .verifiedUserChangedIdentity(users: try FfiConverterSequenceString.read(from: &buf)
17004
16999
)
17005
17000
17006
- case 4: return .sendingFailed(error: try FfiConverterString.read(from: &buf), isRecoverable: try FfiConverterBool.read(from: &buf)
17001
+ case 4: return .crossSigningNotSetup
17002
+
17003
+ case 5: return .sendingFromUnverifiedDevice
17004
+
17005
+ case 6: return .sendingFailed(error: try FfiConverterString.read(from: &buf), isRecoverable: try FfiConverterBool.read(from: &buf)
17007
17006
)
17008
17007
17009
- case 5 : return .sent(eventId: try FfiConverterString.read(from: &buf)
17008
+ case 7 : return .sent(eventId: try FfiConverterString.read(from: &buf)
17010
17009
)
17011
17010
17012
17011
default: throw UniffiInternalError.unexpectedEnumCase
@@ -17031,14 +17030,22 @@ public struct FfiConverterTypeEventSendState: FfiConverterRustBuffer {
17031
17030
FfiConverterSequenceString.write(users, into: &buf)
17032
17031
17033
17032
17034
- case let .sendingFailed(error,isRecoverable) :
17033
+ case .crossSigningNotSetup :
17035
17034
writeInt(&buf, Int32(4))
17035
+
17036
+
17037
+ case .sendingFromUnverifiedDevice:
17038
+ writeInt(&buf, Int32(5))
17039
+
17040
+
17041
+ case let .sendingFailed(error,isRecoverable):
17042
+ writeInt(&buf, Int32(6))
17036
17043
FfiConverterString.write(error, into: &buf)
17037
17044
FfiConverterBool.write(isRecoverable, into: &buf)
17038
17045
17039
17046
17040
17047
case let .sent(eventId):
17041
- writeInt(&buf, Int32(5 ))
17048
+ writeInt(&buf, Int32(7 ))
17042
17049
FfiConverterString.write(eventId, into: &buf)
17043
17050
17044
17051
}
0 commit comments