Skip to content

Commit 0f239a9

Browse files
committed
Bump to version 25.06.12-2 (matrix-rust-sdk/main 6ab11a03239933cedfd3d55856ffd9ae8d27eb96)
1 parent 6450696 commit 0f239a9

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
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 = "1245f8ab514cf127b4fa290e872dec5ffe9fbc96bc5b5c9ce8a85b74bfe9c472"
5-
let version = "25.06.12"
4+
let checksum = "2f49b08cc61116fb8e3127c72cc852dee37f5455828ae2e6bdefb1d26fa58020"
5+
let version = "25.06.12-2"
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_common.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,11 @@ public enum ShieldStateCode {
452452
* The sender was previously verified but changed their identity.
453453
*/
454454
case verificationViolation
455+
/**
456+
* The `sender` field on the event does not match the owner of the device
457+
* that established the Megolm session.
458+
*/
459+
case mismatchedSender
455460
}
456461

457462

@@ -474,6 +479,8 @@ public struct FfiConverterTypeShieldStateCode: FfiConverterRustBuffer {
474479

475480
case 6: return .verificationViolation
476481

482+
case 7: return .mismatchedSender
483+
477484
default: throw UniffiInternalError.unexpectedEnumCase
478485
}
479486
}
@@ -505,6 +512,10 @@ public struct FfiConverterTypeShieldStateCode: FfiConverterRustBuffer {
505512
case .verificationViolation:
506513
writeInt(&buf, Int32(6))
507514

515+
516+
case .mismatchedSender:
517+
writeInt(&buf, Int32(7))
518+
508519
}
509520
}
510521
}

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11100,6 +11100,8 @@ public protocol ThreadSummaryProtocol : AnyObject {
1110011100

1110111101
func latestEvent() -> EmbeddedEventDetails
1110211102

11103+
func numReplies() -> UInt64
11104+
1110311105
}
1110411106

1110511107
open class ThreadSummary:
@@ -11150,6 +11152,13 @@ open func latestEvent() -> EmbeddedEventDetails {
1115011152
})
1115111153
}
1115211154

11155+
open func numReplies() -> UInt64 {
11156+
return try! FfiConverterUInt64.lift(try! rustCall() {
11157+
uniffi_matrix_sdk_ffi_fn_method_threadsummary_num_replies(self.uniffiClonePointer(),$0
11158+
)
11159+
})
11160+
}
11161+
1115311162

1115411163
}
1115511164

@@ -38190,6 +38199,9 @@ private var initializationResult: InitializationResult = {
3819038199
if (uniffi_matrix_sdk_ffi_checksum_method_threadsummary_latest_event() != 52917) {
3819138200
return InitializationResult.apiChecksumMismatch
3819238201
}
38202+
if (uniffi_matrix_sdk_ffi_checksum_method_threadsummary_num_replies() != 10634) {
38203+
return InitializationResult.apiChecksumMismatch
38204+
}
3819338205
if (uniffi_matrix_sdk_ffi_checksum_method_timeline_add_listener() != 18746) {
3819438206
return InitializationResult.apiChecksumMismatch
3819538207
}

0 commit comments

Comments
 (0)