@@ -16747,8 +16747,7 @@ public func FfiConverterTypeSession_lower(_ value: Session) -> RustBuffer {
16747
16747
* Details about the incoming verification request
16748
16748
*/
16749
16749
public struct SessionVerificationRequestDetails {
16750
- public var senderId: String
16751
- public var senderDisplayName: String?
16750
+ public var senderProfile: UserProfile
16752
16751
public var flowId: String
16753
16752
public var deviceId: String
16754
16753
public var deviceDisplayName: String?
@@ -16759,12 +16758,11 @@ public struct SessionVerificationRequestDetails {
16759
16758
16760
16759
// Default memberwise initializers are never public by default, so we
16761
16760
// declare one manually.
16762
- public init(senderId: String, senderDisplayName: String? , flowId: String, deviceId: String, deviceDisplayName: String?,
16761
+ public init(senderProfile: UserProfile , flowId: String, deviceId: String, deviceDisplayName: String?,
16763
16762
/**
16764
16763
* First time this device was seen in milliseconds since epoch.
16765
16764
*/firstSeenTimestamp: Timestamp) {
16766
- self.senderId = senderId
16767
- self.senderDisplayName = senderDisplayName
16765
+ self.senderProfile = senderProfile
16768
16766
self.flowId = flowId
16769
16767
self.deviceId = deviceId
16770
16768
self.deviceDisplayName = deviceDisplayName
@@ -16776,10 +16774,7 @@ public struct SessionVerificationRequestDetails {
16776
16774
16777
16775
extension SessionVerificationRequestDetails: Equatable, Hashable {
16778
16776
public static func ==(lhs: SessionVerificationRequestDetails, rhs: SessionVerificationRequestDetails) -> Bool {
16779
- if lhs.senderId != rhs.senderId {
16780
- return false
16781
- }
16782
- if lhs.senderDisplayName != rhs.senderDisplayName {
16777
+ if lhs.senderProfile != rhs.senderProfile {
16783
16778
return false
16784
16779
}
16785
16780
if lhs.flowId != rhs.flowId {
@@ -16798,8 +16793,7 @@ extension SessionVerificationRequestDetails: Equatable, Hashable {
16798
16793
}
16799
16794
16800
16795
public func hash(into hasher: inout Hasher) {
16801
- hasher.combine(senderId)
16802
- hasher.combine(senderDisplayName)
16796
+ hasher.combine(senderProfile)
16803
16797
hasher.combine(flowId)
16804
16798
hasher.combine(deviceId)
16805
16799
hasher.combine(deviceDisplayName)
@@ -16812,8 +16806,7 @@ public struct FfiConverterTypeSessionVerificationRequestDetails: FfiConverterRus
16812
16806
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SessionVerificationRequestDetails {
16813
16807
return
16814
16808
try SessionVerificationRequestDetails(
16815
- senderId: FfiConverterString.read(from: &buf),
16816
- senderDisplayName: FfiConverterOptionString.read(from: &buf),
16809
+ senderProfile: FfiConverterTypeUserProfile.read(from: &buf),
16817
16810
flowId: FfiConverterString.read(from: &buf),
16818
16811
deviceId: FfiConverterString.read(from: &buf),
16819
16812
deviceDisplayName: FfiConverterOptionString.read(from: &buf),
@@ -16822,8 +16815,7 @@ public struct FfiConverterTypeSessionVerificationRequestDetails: FfiConverterRus
16822
16815
}
16823
16816
16824
16817
public static func write(_ value: SessionVerificationRequestDetails, into buf: inout [UInt8]) {
16825
- FfiConverterString.write(value.senderId, into: &buf)
16826
- FfiConverterOptionString.write(value.senderDisplayName, into: &buf)
16818
+ FfiConverterTypeUserProfile.write(value.senderProfile, into: &buf)
16827
16819
FfiConverterString.write(value.flowId, into: &buf)
16828
16820
FfiConverterString.write(value.deviceId, into: &buf)
16829
16821
FfiConverterOptionString.write(value.deviceDisplayName, into: &buf)
0 commit comments