@@ -16301,6 +16301,26 @@ public struct UnableToDecryptInfo {
16301
16301
* we were not a member of this room?
16302
16302
*/
16303
16303
public var cause: UtdCause
16304
+ /**
16305
+ * The difference between the event creation time (`origin_server_ts`) and
16306
+ * the time our device was created. If negative, this event was sent
16307
+ * *before* our device was created.
16308
+ */
16309
+ public var eventLocalAgeMillis: Int64
16310
+ /**
16311
+ * Whether the user had verified their own identity at the point they
16312
+ * received the UTD event.
16313
+ */
16314
+ public var userTrustsOwnIdentity: Bool
16315
+ /**
16316
+ * The homeserver of the user that sent the undecryptable event.
16317
+ */
16318
+ public var senderHomeserver: String
16319
+ /**
16320
+ * Our local user's own homeserver, or `None` if the client is not logged
16321
+ * in.
16322
+ */
16323
+ public var ownHomeserver: String?
16304
16324
16305
16325
// Default memberwise initializers are never public by default, so we
16306
16326
// declare one manually.
@@ -16319,10 +16339,30 @@ public struct UnableToDecryptInfo {
16319
16339
/**
16320
16340
* What we know about what caused this UTD. E.g. was this event sent when
16321
16341
* we were not a member of this room?
16322
- */cause: UtdCause) {
16342
+ */cause: UtdCause,
16343
+ /**
16344
+ * The difference between the event creation time (`origin_server_ts`) and
16345
+ * the time our device was created. If negative, this event was sent
16346
+ * *before* our device was created.
16347
+ */eventLocalAgeMillis: Int64,
16348
+ /**
16349
+ * Whether the user had verified their own identity at the point they
16350
+ * received the UTD event.
16351
+ */userTrustsOwnIdentity: Bool,
16352
+ /**
16353
+ * The homeserver of the user that sent the undecryptable event.
16354
+ */senderHomeserver: String,
16355
+ /**
16356
+ * Our local user's own homeserver, or `None` if the client is not logged
16357
+ * in.
16358
+ */ownHomeserver: String?) {
16323
16359
self.eventId = eventId
16324
16360
self.timeToDecryptMs = timeToDecryptMs
16325
16361
self.cause = cause
16362
+ self.eventLocalAgeMillis = eventLocalAgeMillis
16363
+ self.userTrustsOwnIdentity = userTrustsOwnIdentity
16364
+ self.senderHomeserver = senderHomeserver
16365
+ self.ownHomeserver = ownHomeserver
16326
16366
}
16327
16367
}
16328
16368
@@ -16339,13 +16379,29 @@ extension UnableToDecryptInfo: Equatable, Hashable {
16339
16379
if lhs.cause != rhs.cause {
16340
16380
return false
16341
16381
}
16382
+ if lhs.eventLocalAgeMillis != rhs.eventLocalAgeMillis {
16383
+ return false
16384
+ }
16385
+ if lhs.userTrustsOwnIdentity != rhs.userTrustsOwnIdentity {
16386
+ return false
16387
+ }
16388
+ if lhs.senderHomeserver != rhs.senderHomeserver {
16389
+ return false
16390
+ }
16391
+ if lhs.ownHomeserver != rhs.ownHomeserver {
16392
+ return false
16393
+ }
16342
16394
return true
16343
16395
}
16344
16396
16345
16397
public func hash(into hasher: inout Hasher) {
16346
16398
hasher.combine(eventId)
16347
16399
hasher.combine(timeToDecryptMs)
16348
16400
hasher.combine(cause)
16401
+ hasher.combine(eventLocalAgeMillis)
16402
+ hasher.combine(userTrustsOwnIdentity)
16403
+ hasher.combine(senderHomeserver)
16404
+ hasher.combine(ownHomeserver)
16349
16405
}
16350
16406
}
16351
16407
@@ -16356,14 +16412,22 @@ public struct FfiConverterTypeUnableToDecryptInfo: FfiConverterRustBuffer {
16356
16412
try UnableToDecryptInfo(
16357
16413
eventId: FfiConverterString.read(from: &buf),
16358
16414
timeToDecryptMs: FfiConverterOptionUInt64.read(from: &buf),
16359
- cause: FfiConverterTypeUtdCause.read(from: &buf)
16415
+ cause: FfiConverterTypeUtdCause.read(from: &buf),
16416
+ eventLocalAgeMillis: FfiConverterInt64.read(from: &buf),
16417
+ userTrustsOwnIdentity: FfiConverterBool.read(from: &buf),
16418
+ senderHomeserver: FfiConverterString.read(from: &buf),
16419
+ ownHomeserver: FfiConverterOptionString.read(from: &buf)
16360
16420
)
16361
16421
}
16362
16422
16363
16423
public static func write(_ value: UnableToDecryptInfo, into buf: inout [UInt8]) {
16364
16424
FfiConverterString.write(value.eventId, into: &buf)
16365
16425
FfiConverterOptionUInt64.write(value.timeToDecryptMs, into: &buf)
16366
16426
FfiConverterTypeUtdCause.write(value.cause, into: &buf)
16427
+ FfiConverterInt64.write(value.eventLocalAgeMillis, into: &buf)
16428
+ FfiConverterBool.write(value.userTrustsOwnIdentity, into: &buf)
16429
+ FfiConverterString.write(value.senderHomeserver, into: &buf)
16430
+ FfiConverterOptionString.write(value.ownHomeserver, into: &buf)
16367
16431
}
16368
16432
}
16369
16433
0 commit comments