Update the SDK.

This commit is contained in:
Doug
2026-09-09 17:35:29 +01:00
committed by Stefan Ceriu
parent b652dfe69a
commit 9fe64b7cd4
4 changed files with 33 additions and 4 deletions
@@ -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?
+1 -1
View File
@@ -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" */ = {
@@ -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"
}
},
{
+1 -1
View File
@@ -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