Bump the RustSDK to v26.10.24

Brings in a fix for rooms that kept back-paginating in the background
while looking for their latest event, which started with 26.10.20.
The SDK mocks are regenerated for the new optional request config
parameter on the raw send methods.

matrix-rust-sdk: 8de215a0aa0026afa5754ae5f05a6d168d1a1d60
This commit is contained in:
Mauro Romito
2026-10-23 17:03:53 +02:00
committed by Mauro
parent 7a87b5f04c
commit a11c16b602
4 changed files with 148 additions and 101 deletions
@@ -1659,6 +1659,53 @@ open class ClientSDKMock: MatrixRustSDK.Client, @unchecked Sendable {
} }
} }
//MARK: - hasEncryptedRooms
open var hasEncryptedRoomsTimeoutThrowableError: Error?
private let hasEncryptedRoomsTimeoutCallsCountLock = NSLock()
private var hasEncryptedRoomsTimeoutUnderlyingCallsCount = 0
open var hasEncryptedRoomsTimeoutCallsCount: Int {
get { hasEncryptedRoomsTimeoutCallsCountLock.withLock { hasEncryptedRoomsTimeoutUnderlyingCallsCount } }
set { hasEncryptedRoomsTimeoutCallsCountLock.withLock { hasEncryptedRoomsTimeoutUnderlyingCallsCount = newValue } }
}
open var hasEncryptedRoomsTimeoutCalled: Bool {
return hasEncryptedRoomsTimeoutCallsCount > 0
}
private let hasEncryptedRoomsTimeoutReceivedTimeoutLock = NSLock()
private var hasEncryptedRoomsTimeoutUnderlyingReceivedTimeout: TimeInterval?
open var hasEncryptedRoomsTimeoutReceivedTimeout: TimeInterval? {
get { hasEncryptedRoomsTimeoutReceivedTimeoutLock.withLock { hasEncryptedRoomsTimeoutUnderlyingReceivedTimeout } }
set { hasEncryptedRoomsTimeoutReceivedTimeoutLock.withLock { hasEncryptedRoomsTimeoutUnderlyingReceivedTimeout = newValue } }
}
private let hasEncryptedRoomsTimeoutReceivedInvocationsLock = NSLock()
private var hasEncryptedRoomsTimeoutUnderlyingReceivedInvocations: [TimeInterval] = []
open var hasEncryptedRoomsTimeoutReceivedInvocations: [TimeInterval] {
get { hasEncryptedRoomsTimeoutReceivedInvocationsLock.withLock { hasEncryptedRoomsTimeoutUnderlyingReceivedInvocations } }
set { hasEncryptedRoomsTimeoutReceivedInvocationsLock.withLock { hasEncryptedRoomsTimeoutUnderlyingReceivedInvocations = newValue } }
}
private let hasEncryptedRoomsTimeoutReturnValueLock = NSLock()
open var hasEncryptedRoomsTimeoutUnderlyingReturnValue: Bool!
open var hasEncryptedRoomsTimeoutReturnValue: Bool! {
get { hasEncryptedRoomsTimeoutReturnValueLock.withLock { hasEncryptedRoomsTimeoutUnderlyingReturnValue } }
set { hasEncryptedRoomsTimeoutReturnValueLock.withLock { hasEncryptedRoomsTimeoutUnderlyingReturnValue = newValue } }
}
open var hasEncryptedRoomsTimeoutClosure: ((TimeInterval) async throws -> Bool)?
open override func hasEncryptedRooms(timeout: TimeInterval) async throws -> Bool {
if let error = hasEncryptedRoomsTimeoutThrowableError {
throw error
}
hasEncryptedRoomsTimeoutCallsCountLock.withLock { hasEncryptedRoomsTimeoutUnderlyingCallsCount += 1 }
hasEncryptedRoomsTimeoutReceivedTimeout = timeout
hasEncryptedRoomsTimeoutReceivedInvocationsLock.withLock { hasEncryptedRoomsTimeoutUnderlyingReceivedInvocations.append(timeout) }
if let hasEncryptedRoomsTimeoutClosure = hasEncryptedRoomsTimeoutClosure {
return try await hasEncryptedRoomsTimeoutClosure(timeout)
} else {
return hasEncryptedRoomsTimeoutReturnValue
}
}
//MARK: - homeserver //MARK: - homeserver
private let homeserverCallsCountLock = NSLock() private let homeserverCallsCountLock = NSLock()
@@ -12432,48 +12479,48 @@ open class RoomSDKMock: MatrixRustSDK.Room, @unchecked Sendable {
//MARK: - sendRaw //MARK: - sendRaw
open var sendRawEventTypeContentThrowableError: Error? open var sendRawEventTypeContentRequestConfigOverrideThrowableError: Error?
private let sendRawEventTypeContentCallsCountLock = NSLock() private let sendRawEventTypeContentRequestConfigOverrideCallsCountLock = NSLock()
private var sendRawEventTypeContentUnderlyingCallsCount = 0 private var sendRawEventTypeContentRequestConfigOverrideUnderlyingCallsCount = 0
open var sendRawEventTypeContentCallsCount: Int { open var sendRawEventTypeContentRequestConfigOverrideCallsCount: Int {
get { sendRawEventTypeContentCallsCountLock.withLock { sendRawEventTypeContentUnderlyingCallsCount } } get { sendRawEventTypeContentRequestConfigOverrideCallsCountLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingCallsCount } }
set { sendRawEventTypeContentCallsCountLock.withLock { sendRawEventTypeContentUnderlyingCallsCount = newValue } } set { sendRawEventTypeContentRequestConfigOverrideCallsCountLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingCallsCount = newValue } }
} }
open var sendRawEventTypeContentCalled: Bool { open var sendRawEventTypeContentRequestConfigOverrideCalled: Bool {
return sendRawEventTypeContentCallsCount > 0 return sendRawEventTypeContentRequestConfigOverrideCallsCount > 0
} }
private let sendRawEventTypeContentReceivedArgumentsLock = NSLock() private let sendRawEventTypeContentRequestConfigOverrideReceivedArgumentsLock = NSLock()
private var sendRawEventTypeContentUnderlyingReceivedArguments: (eventType: String, content: String)? private var sendRawEventTypeContentRequestConfigOverrideUnderlyingReceivedArguments: (eventType: String, content: String, requestConfigOverride: RequestConfigOverride?)?
open var sendRawEventTypeContentReceivedArguments: (eventType: String, content: String)? { open var sendRawEventTypeContentRequestConfigOverrideReceivedArguments: (eventType: String, content: String, requestConfigOverride: RequestConfigOverride?)? {
get { sendRawEventTypeContentReceivedArgumentsLock.withLock { sendRawEventTypeContentUnderlyingReceivedArguments } } get { sendRawEventTypeContentRequestConfigOverrideReceivedArgumentsLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingReceivedArguments } }
set { sendRawEventTypeContentReceivedArgumentsLock.withLock { sendRawEventTypeContentUnderlyingReceivedArguments = newValue } } set { sendRawEventTypeContentRequestConfigOverrideReceivedArgumentsLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingReceivedArguments = newValue } }
} }
private let sendRawEventTypeContentReceivedInvocationsLock = NSLock() private let sendRawEventTypeContentRequestConfigOverrideReceivedInvocationsLock = NSLock()
private var sendRawEventTypeContentUnderlyingReceivedInvocations: [(eventType: String, content: String)] = [] private var sendRawEventTypeContentRequestConfigOverrideUnderlyingReceivedInvocations: [(eventType: String, content: String, requestConfigOverride: RequestConfigOverride?)] = []
open var sendRawEventTypeContentReceivedInvocations: [(eventType: String, content: String)] { open var sendRawEventTypeContentRequestConfigOverrideReceivedInvocations: [(eventType: String, content: String, requestConfigOverride: RequestConfigOverride?)] {
get { sendRawEventTypeContentReceivedInvocationsLock.withLock { sendRawEventTypeContentUnderlyingReceivedInvocations } } get { sendRawEventTypeContentRequestConfigOverrideReceivedInvocationsLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingReceivedInvocations } }
set { sendRawEventTypeContentReceivedInvocationsLock.withLock { sendRawEventTypeContentUnderlyingReceivedInvocations = newValue } } set { sendRawEventTypeContentRequestConfigOverrideReceivedInvocationsLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingReceivedInvocations = newValue } }
} }
private let sendRawEventTypeContentReturnValueLock = NSLock() private let sendRawEventTypeContentRequestConfigOverrideReturnValueLock = NSLock()
open var sendRawEventTypeContentUnderlyingReturnValue: String! open var sendRawEventTypeContentRequestConfigOverrideUnderlyingReturnValue: String!
open var sendRawEventTypeContentReturnValue: String! { open var sendRawEventTypeContentRequestConfigOverrideReturnValue: String! {
get { sendRawEventTypeContentReturnValueLock.withLock { sendRawEventTypeContentUnderlyingReturnValue } } get { sendRawEventTypeContentRequestConfigOverrideReturnValueLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingReturnValue } }
set { sendRawEventTypeContentReturnValueLock.withLock { sendRawEventTypeContentUnderlyingReturnValue = newValue } } set { sendRawEventTypeContentRequestConfigOverrideReturnValueLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingReturnValue = newValue } }
} }
open var sendRawEventTypeContentClosure: ((String, String) async throws -> String)? open var sendRawEventTypeContentRequestConfigOverrideClosure: ((String, String, RequestConfigOverride?) async throws -> String)?
open override func sendRaw(eventType: String, content: String) async throws -> String { open override func sendRaw(eventType: String, content: String, requestConfigOverride: RequestConfigOverride? = nil) async throws -> String {
if let error = sendRawEventTypeContentThrowableError { if let error = sendRawEventTypeContentRequestConfigOverrideThrowableError {
throw error throw error
} }
sendRawEventTypeContentCallsCountLock.withLock { sendRawEventTypeContentUnderlyingCallsCount += 1 } sendRawEventTypeContentRequestConfigOverrideCallsCountLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingCallsCount += 1 }
sendRawEventTypeContentReceivedArguments = (eventType: eventType, content: content) sendRawEventTypeContentRequestConfigOverrideReceivedArguments = (eventType: eventType, content: content, requestConfigOverride: requestConfigOverride)
sendRawEventTypeContentReceivedInvocationsLock.withLock { sendRawEventTypeContentUnderlyingReceivedInvocations.append((eventType: eventType, content: content)) } sendRawEventTypeContentRequestConfigOverrideReceivedInvocationsLock.withLock { sendRawEventTypeContentRequestConfigOverrideUnderlyingReceivedInvocations.append((eventType: eventType, content: content, requestConfigOverride: requestConfigOverride)) }
if let sendRawEventTypeContentClosure = sendRawEventTypeContentClosure { if let sendRawEventTypeContentRequestConfigOverrideClosure = sendRawEventTypeContentRequestConfigOverrideClosure {
return try await sendRawEventTypeContentClosure(eventType, content) return try await sendRawEventTypeContentRequestConfigOverrideClosure(eventType, content, requestConfigOverride)
} else { } else {
return sendRawEventTypeContentReturnValue return sendRawEventTypeContentRequestConfigOverrideReturnValue
} }
} }
@@ -12515,48 +12562,48 @@ open class RoomSDKMock: MatrixRustSDK.Room, @unchecked Sendable {
//MARK: - sendStateEventRaw //MARK: - sendStateEventRaw
open var sendStateEventRawEventTypeStateKeyContentThrowableError: Error? open var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideThrowableError: Error?
private let sendStateEventRawEventTypeStateKeyContentCallsCountLock = NSLock() private let sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideCallsCountLock = NSLock()
private var sendStateEventRawEventTypeStateKeyContentUnderlyingCallsCount = 0 private var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingCallsCount = 0
open var sendStateEventRawEventTypeStateKeyContentCallsCount: Int { open var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideCallsCount: Int {
get { sendStateEventRawEventTypeStateKeyContentCallsCountLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingCallsCount } } get { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideCallsCountLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingCallsCount } }
set { sendStateEventRawEventTypeStateKeyContentCallsCountLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingCallsCount = newValue } } set { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideCallsCountLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingCallsCount = newValue } }
} }
open var sendStateEventRawEventTypeStateKeyContentCalled: Bool { open var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideCalled: Bool {
return sendStateEventRawEventTypeStateKeyContentCallsCount > 0 return sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideCallsCount > 0
} }
private let sendStateEventRawEventTypeStateKeyContentReceivedArgumentsLock = NSLock() private let sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedArgumentsLock = NSLock()
private var sendStateEventRawEventTypeStateKeyContentUnderlyingReceivedArguments: (eventType: String, stateKey: String, content: String)? private var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReceivedArguments: (eventType: String, stateKey: String, content: String, requestConfigOverride: RequestConfigOverride?)?
open var sendStateEventRawEventTypeStateKeyContentReceivedArguments: (eventType: String, stateKey: String, content: String)? { open var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedArguments: (eventType: String, stateKey: String, content: String, requestConfigOverride: RequestConfigOverride?)? {
get { sendStateEventRawEventTypeStateKeyContentReceivedArgumentsLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingReceivedArguments } } get { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedArgumentsLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReceivedArguments } }
set { sendStateEventRawEventTypeStateKeyContentReceivedArgumentsLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingReceivedArguments = newValue } } set { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedArgumentsLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReceivedArguments = newValue } }
} }
private let sendStateEventRawEventTypeStateKeyContentReceivedInvocationsLock = NSLock() private let sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedInvocationsLock = NSLock()
private var sendStateEventRawEventTypeStateKeyContentUnderlyingReceivedInvocations: [(eventType: String, stateKey: String, content: String)] = [] private var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReceivedInvocations: [(eventType: String, stateKey: String, content: String, requestConfigOverride: RequestConfigOverride?)] = []
open var sendStateEventRawEventTypeStateKeyContentReceivedInvocations: [(eventType: String, stateKey: String, content: String)] { open var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedInvocations: [(eventType: String, stateKey: String, content: String, requestConfigOverride: RequestConfigOverride?)] {
get { sendStateEventRawEventTypeStateKeyContentReceivedInvocationsLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingReceivedInvocations } } get { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedInvocationsLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReceivedInvocations } }
set { sendStateEventRawEventTypeStateKeyContentReceivedInvocationsLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingReceivedInvocations = newValue } } set { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedInvocationsLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReceivedInvocations = newValue } }
} }
private let sendStateEventRawEventTypeStateKeyContentReturnValueLock = NSLock() private let sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReturnValueLock = NSLock()
open var sendStateEventRawEventTypeStateKeyContentUnderlyingReturnValue: String! open var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReturnValue: String!
open var sendStateEventRawEventTypeStateKeyContentReturnValue: String! { open var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReturnValue: String! {
get { sendStateEventRawEventTypeStateKeyContentReturnValueLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingReturnValue } } get { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReturnValueLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReturnValue } }
set { sendStateEventRawEventTypeStateKeyContentReturnValueLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingReturnValue = newValue } } set { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReturnValueLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReturnValue = newValue } }
} }
open var sendStateEventRawEventTypeStateKeyContentClosure: ((String, String, String) async throws -> String)? open var sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideClosure: ((String, String, String, RequestConfigOverride?) async throws -> String)?
open override func sendStateEventRaw(eventType: String, stateKey: String, content: String) async throws -> String { open override func sendStateEventRaw(eventType: String, stateKey: String, content: String, requestConfigOverride: RequestConfigOverride? = nil) async throws -> String {
if let error = sendStateEventRawEventTypeStateKeyContentThrowableError { if let error = sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideThrowableError {
throw error throw error
} }
sendStateEventRawEventTypeStateKeyContentCallsCountLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingCallsCount += 1 } sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideCallsCountLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingCallsCount += 1 }
sendStateEventRawEventTypeStateKeyContentReceivedArguments = (eventType: eventType, stateKey: stateKey, content: content) sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedArguments = (eventType: eventType, stateKey: stateKey, content: content, requestConfigOverride: requestConfigOverride)
sendStateEventRawEventTypeStateKeyContentReceivedInvocationsLock.withLock { sendStateEventRawEventTypeStateKeyContentUnderlyingReceivedInvocations.append((eventType: eventType, stateKey: stateKey, content: content)) } sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReceivedInvocationsLock.withLock { sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideUnderlyingReceivedInvocations.append((eventType: eventType, stateKey: stateKey, content: content, requestConfigOverride: requestConfigOverride)) }
if let sendStateEventRawEventTypeStateKeyContentClosure = sendStateEventRawEventTypeStateKeyContentClosure { if let sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideClosure = sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideClosure {
return try await sendStateEventRawEventTypeStateKeyContentClosure(eventType, stateKey, content) return try await sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideClosure(eventType, stateKey, content, requestConfigOverride)
} else { } else {
return sendStateEventRawEventTypeStateKeyContentReturnValue return sendStateEventRawEventTypeStateKeyContentRequestConfigOverrideReturnValue
} }
} }
@@ -13828,48 +13875,48 @@ open class RoomSDKMock: MatrixRustSDK.Room, @unchecked Sendable {
//MARK: - sendStickyRaw //MARK: - sendStickyRaw
open var sendStickyRawEventTypeContentDurationMsThrowableError: Error? open var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideThrowableError: Error?
private let sendStickyRawEventTypeContentDurationMsCallsCountLock = NSLock() private let sendStickyRawEventTypeContentDurationMsRequestConfigOverrideCallsCountLock = NSLock()
private var sendStickyRawEventTypeContentDurationMsUnderlyingCallsCount = 0 private var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingCallsCount = 0
open var sendStickyRawEventTypeContentDurationMsCallsCount: Int { open var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideCallsCount: Int {
get { sendStickyRawEventTypeContentDurationMsCallsCountLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingCallsCount } } get { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideCallsCountLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingCallsCount } }
set { sendStickyRawEventTypeContentDurationMsCallsCountLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingCallsCount = newValue } } set { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideCallsCountLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingCallsCount = newValue } }
} }
open var sendStickyRawEventTypeContentDurationMsCalled: Bool { open var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideCalled: Bool {
return sendStickyRawEventTypeContentDurationMsCallsCount > 0 return sendStickyRawEventTypeContentDurationMsRequestConfigOverrideCallsCount > 0
} }
private let sendStickyRawEventTypeContentDurationMsReceivedArgumentsLock = NSLock() private let sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedArgumentsLock = NSLock()
private var sendStickyRawEventTypeContentDurationMsUnderlyingReceivedArguments: (eventType: String, content: String, durationMs: UInt64)? private var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReceivedArguments: (eventType: String, content: String, durationMs: UInt64, requestConfigOverride: RequestConfigOverride?)?
open var sendStickyRawEventTypeContentDurationMsReceivedArguments: (eventType: String, content: String, durationMs: UInt64)? { open var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedArguments: (eventType: String, content: String, durationMs: UInt64, requestConfigOverride: RequestConfigOverride?)? {
get { sendStickyRawEventTypeContentDurationMsReceivedArgumentsLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingReceivedArguments } } get { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedArgumentsLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReceivedArguments } }
set { sendStickyRawEventTypeContentDurationMsReceivedArgumentsLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingReceivedArguments = newValue } } set { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedArgumentsLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReceivedArguments = newValue } }
} }
private let sendStickyRawEventTypeContentDurationMsReceivedInvocationsLock = NSLock() private let sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedInvocationsLock = NSLock()
private var sendStickyRawEventTypeContentDurationMsUnderlyingReceivedInvocations: [(eventType: String, content: String, durationMs: UInt64)] = [] private var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReceivedInvocations: [(eventType: String, content: String, durationMs: UInt64, requestConfigOverride: RequestConfigOverride?)] = []
open var sendStickyRawEventTypeContentDurationMsReceivedInvocations: [(eventType: String, content: String, durationMs: UInt64)] { open var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedInvocations: [(eventType: String, content: String, durationMs: UInt64, requestConfigOverride: RequestConfigOverride?)] {
get { sendStickyRawEventTypeContentDurationMsReceivedInvocationsLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingReceivedInvocations } } get { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedInvocationsLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReceivedInvocations } }
set { sendStickyRawEventTypeContentDurationMsReceivedInvocationsLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingReceivedInvocations = newValue } } set { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedInvocationsLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReceivedInvocations = newValue } }
} }
private let sendStickyRawEventTypeContentDurationMsReturnValueLock = NSLock() private let sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReturnValueLock = NSLock()
open var sendStickyRawEventTypeContentDurationMsUnderlyingReturnValue: String! open var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReturnValue: String!
open var sendStickyRawEventTypeContentDurationMsReturnValue: String! { open var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReturnValue: String! {
get { sendStickyRawEventTypeContentDurationMsReturnValueLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingReturnValue } } get { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReturnValueLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReturnValue } }
set { sendStickyRawEventTypeContentDurationMsReturnValueLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingReturnValue = newValue } } set { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReturnValueLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReturnValue = newValue } }
} }
open var sendStickyRawEventTypeContentDurationMsClosure: ((String, String, UInt64) async throws -> String)? open var sendStickyRawEventTypeContentDurationMsRequestConfigOverrideClosure: ((String, String, UInt64, RequestConfigOverride?) async throws -> String)?
open override func sendStickyRaw(eventType: String, content: String, durationMs: UInt64) async throws -> String { open override func sendStickyRaw(eventType: String, content: String, durationMs: UInt64, requestConfigOverride: RequestConfigOverride? = nil) async throws -> String {
if let error = sendStickyRawEventTypeContentDurationMsThrowableError { if let error = sendStickyRawEventTypeContentDurationMsRequestConfigOverrideThrowableError {
throw error throw error
} }
sendStickyRawEventTypeContentDurationMsCallsCountLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingCallsCount += 1 } sendStickyRawEventTypeContentDurationMsRequestConfigOverrideCallsCountLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingCallsCount += 1 }
sendStickyRawEventTypeContentDurationMsReceivedArguments = (eventType: eventType, content: content, durationMs: durationMs) sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedArguments = (eventType: eventType, content: content, durationMs: durationMs, requestConfigOverride: requestConfigOverride)
sendStickyRawEventTypeContentDurationMsReceivedInvocationsLock.withLock { sendStickyRawEventTypeContentDurationMsUnderlyingReceivedInvocations.append((eventType: eventType, content: content, durationMs: durationMs)) } sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReceivedInvocationsLock.withLock { sendStickyRawEventTypeContentDurationMsRequestConfigOverrideUnderlyingReceivedInvocations.append((eventType: eventType, content: content, durationMs: durationMs, requestConfigOverride: requestConfigOverride)) }
if let sendStickyRawEventTypeContentDurationMsClosure = sendStickyRawEventTypeContentDurationMsClosure { if let sendStickyRawEventTypeContentDurationMsRequestConfigOverrideClosure = sendStickyRawEventTypeContentDurationMsRequestConfigOverrideClosure {
return try await sendStickyRawEventTypeContentDurationMsClosure(eventType, content, durationMs) return try await sendStickyRawEventTypeContentDurationMsRequestConfigOverrideClosure(eventType, content, durationMs, requestConfigOverride)
} else { } else {
return sendStickyRawEventTypeContentDurationMsReturnValue return sendStickyRawEventTypeContentDurationMsRequestConfigOverrideReturnValue
} }
} }
+1 -1
View File
@@ -11135,7 +11135,7 @@
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift"; repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
requirement = { requirement = {
kind = exactVersion; kind = exactVersion;
version = 26.10.20; version = 26.10.24;
}; };
}; };
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = { 701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
@@ -1,5 +1,5 @@
{ {
"originHash" : "55a784b5b7092aa800fb7d0f9af41c2e239c49a3fcac770060aca801e174e9f1", "originHash" : "d18d4a7c62138d674cc09798b0026690d81f3056cd1eae65a908287ccace2f0f",
"pins" : [ "pins" : [
{ {
"identity" : "compound-design-tokens", "identity" : "compound-design-tokens",
@@ -176,8 +176,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/element-hq/matrix-rust-components-swift", "location" : "https://github.com/element-hq/matrix-rust-components-swift",
"state" : { "state" : {
"revision" : "da2b9829f0843d562f99209c1445e115830ca493", "revision" : "d7bce2b7666c0b2fe06a29222f28c07467f84f72",
"version" : "26.10.20" "version" : "26.10.24"
} }
}, },
{ {
+1 -1
View File
@@ -75,7 +75,7 @@ packages:
# Element/Matrix dependencies # Element/Matrix dependencies
MatrixRustSDK: MatrixRustSDK:
url: https://github.com/element-hq/matrix-rust-components-swift url: https://github.com/element-hq/matrix-rust-components-swift
exactVersion: 26.10.20 exactVersion: 26.10.24
# path: ../matrix-rust-sdk # path: ../matrix-rust-sdk
Compound: Compound:
path: compound-ios path: compound-ios