Skip to content

Commit bc819f0

Browse files
committed
Bump to version 25.02.07 (matrix-rust-sdk/main 83dd11ea7de67ea3a17a4b4ca425b5f01260925e)
1 parent 3553649 commit bc819f0

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
import PackageDescription
4-
let checksum = "d817687b99fb51c7952a60ac386a6936f01cdaf20a725ead49fdede66ac2555d"
5-
let version = "25.02.06"
4+
let checksum = "4d7101162303081dec68b8dfe38cc1d9603da99a8a1c0d1164175d0a5ea41a22"
5+
let version = "25.02.07"
66
let url = "https://github.com/element-hq/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
77
let package = Package(
88
name: "MatrixRustSDK",

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16747,8 +16747,7 @@ public func FfiConverterTypeSession_lower(_ value: Session) -> RustBuffer {
1674716747
* Details about the incoming verification request
1674816748
*/
1674916749
public struct SessionVerificationRequestDetails {
16750-
public var senderId: String
16751-
public var senderDisplayName: String?
16750+
public var senderProfile: UserProfile
1675216751
public var flowId: String
1675316752
public var deviceId: String
1675416753
public var deviceDisplayName: String?
@@ -16759,12 +16758,11 @@ public struct SessionVerificationRequestDetails {
1675916758

1676016759
// Default memberwise initializers are never public by default, so we
1676116760
// 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?,
1676316762
/**
1676416763
* First time this device was seen in milliseconds since epoch.
1676516764
*/firstSeenTimestamp: Timestamp) {
16766-
self.senderId = senderId
16767-
self.senderDisplayName = senderDisplayName
16765+
self.senderProfile = senderProfile
1676816766
self.flowId = flowId
1676916767
self.deviceId = deviceId
1677016768
self.deviceDisplayName = deviceDisplayName
@@ -16776,10 +16774,7 @@ public struct SessionVerificationRequestDetails {
1677616774

1677716775
extension SessionVerificationRequestDetails: Equatable, Hashable {
1677816776
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 {
1678316778
return false
1678416779
}
1678516780
if lhs.flowId != rhs.flowId {
@@ -16798,8 +16793,7 @@ extension SessionVerificationRequestDetails: Equatable, Hashable {
1679816793
}
1679916794

1680016795
public func hash(into hasher: inout Hasher) {
16801-
hasher.combine(senderId)
16802-
hasher.combine(senderDisplayName)
16796+
hasher.combine(senderProfile)
1680316797
hasher.combine(flowId)
1680416798
hasher.combine(deviceId)
1680516799
hasher.combine(deviceDisplayName)
@@ -16812,8 +16806,7 @@ public struct FfiConverterTypeSessionVerificationRequestDetails: FfiConverterRus
1681216806
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SessionVerificationRequestDetails {
1681316807
return
1681416808
try SessionVerificationRequestDetails(
16815-
senderId: FfiConverterString.read(from: &buf),
16816-
senderDisplayName: FfiConverterOptionString.read(from: &buf),
16809+
senderProfile: FfiConverterTypeUserProfile.read(from: &buf),
1681716810
flowId: FfiConverterString.read(from: &buf),
1681816811
deviceId: FfiConverterString.read(from: &buf),
1681916812
deviceDisplayName: FfiConverterOptionString.read(from: &buf),
@@ -16822,8 +16815,7 @@ public struct FfiConverterTypeSessionVerificationRequestDetails: FfiConverterRus
1682216815
}
1682316816

1682416817
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)
1682716819
FfiConverterString.write(value.flowId, into: &buf)
1682816820
FfiConverterString.write(value.deviceId, into: &buf)
1682916821
FfiConverterOptionString.write(value.deviceDisplayName, into: &buf)

0 commit comments

Comments
 (0)