From 9fe64b7cd4f87ab7872cd84ed4a1de3ef5360767 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 9 Sep 2026 17:35:29 +0100 Subject: [PATCH] Update the SDK. --- .../Sources/Generated/SDKGeneratedMocks.swift | 29 +++++++++++++++++++ ElementX.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/swiftpm/Package.resolved | 4 +-- project.yml | 2 +- 4 files changed, 33 insertions(+), 4 deletions(-) diff --git a/Components/SDKMocks/Sources/Generated/SDKGeneratedMocks.swift b/Components/SDKMocks/Sources/Generated/SDKGeneratedMocks.swift index 307681b2c..129779d0c 100644 --- a/Components/SDKMocks/Sources/Generated/SDKGeneratedMocks.swift +++ b/Components/SDKMocks/Sources/Generated/SDKGeneratedMocks.swift @@ -4115,6 +4115,35 @@ open class ClientSDKMock: MatrixRustSDK.Client, @unchecked Sendable { } } + //MARK: - totalUnreadNotifications + + private let totalUnreadNotificationsCallsCountLock = NSLock() + private var totalUnreadNotificationsUnderlyingCallsCount = 0 + open var totalUnreadNotificationsCallsCount: Int { + get { totalUnreadNotificationsCallsCountLock.withLock { totalUnreadNotificationsUnderlyingCallsCount } } + set { totalUnreadNotificationsCallsCountLock.withLock { totalUnreadNotificationsUnderlyingCallsCount = newValue } } + } + open var totalUnreadNotificationsCalled: Bool { + return totalUnreadNotificationsCallsCount > 0 + } + + private let totalUnreadNotificationsReturnValueLock = NSLock() + open var totalUnreadNotificationsUnderlyingReturnValue: UInt64! + open var totalUnreadNotificationsReturnValue: UInt64! { + get { totalUnreadNotificationsReturnValueLock.withLock { totalUnreadNotificationsUnderlyingReturnValue } } + set { totalUnreadNotificationsReturnValueLock.withLock { totalUnreadNotificationsUnderlyingReturnValue = newValue } } + } + open var totalUnreadNotificationsClosure: (() -> UInt64)? + + open override func totalUnreadNotifications() -> UInt64 { + totalUnreadNotificationsCallsCountLock.withLock { totalUnreadNotificationsUnderlyingCallsCount += 1 } + if let totalUnreadNotificationsClosure = totalUnreadNotificationsClosure { + return totalUnreadNotificationsClosure() + } else { + return totalUnreadNotificationsReturnValue + } + } + //MARK: - trackRecentlyVisitedRoom open var trackRecentlyVisitedRoomRoomThrowableError: Error? diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj index eac022c4f..46766d7ab 100644 --- a/ElementX.xcodeproj/project.pbxproj +++ b/ElementX.xcodeproj/project.pbxproj @@ -10825,7 +10825,7 @@ repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift"; requirement = { kind = exactVersion; - version = 26.09.08; + version = 26.09.09; }; }; 701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = { diff --git a/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 1bcb9cc08..a765c0766 100644 --- a/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -167,8 +167,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/element-hq/matrix-rust-components-swift", "state" : { - "revision" : "bd4fe022902bb3c3cbeb017cbf60516b6ef7f6f0", - "version" : "26.9.8" + "revision" : "56ec8d0458a688018bbd9f1f2fd70fae7919f415", + "version" : "26.9.9" } }, { diff --git a/project.yml b/project.yml index ef5c6cfaa..37068a41e 100644 --- a/project.yml +++ b/project.yml @@ -74,7 +74,7 @@ packages: # Element/Matrix dependencies MatrixRustSDK: url: https://github.com/element-hq/matrix-rust-components-swift - exactVersion: 26.09.08 + exactVersion: 26.09.09 # path: ../matrix-rust-sdk Compound: path: compound-ios