mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Bump the RustSDK to v25.03.31
- adopt new async throwing methods - use the sdk side TimelineStart virtual timeline item - remove async from `directRoomForUserID` as it's not async on the rust side - remove async from `retryDecryption` as it's spawning not blocking on the rust side
This commit is contained in:
committed by
Stefan Ceriu
parent
5e50823223
commit
901c833c40
@@ -2599,16 +2599,16 @@ class ClientProxyMock: ClientProxyProtocol, @unchecked Sendable {
|
||||
}
|
||||
}
|
||||
}
|
||||
var directRoomForUserIDClosure: ((String) async -> Result<String?, ClientProxyError>)?
|
||||
var directRoomForUserIDClosure: ((String) -> Result<String?, ClientProxyError>)?
|
||||
|
||||
func directRoomForUserID(_ userID: String) async -> Result<String?, ClientProxyError> {
|
||||
func directRoomForUserID(_ userID: String) -> Result<String?, ClientProxyError> {
|
||||
directRoomForUserIDCallsCount += 1
|
||||
directRoomForUserIDReceivedUserID = userID
|
||||
DispatchQueue.main.async {
|
||||
self.directRoomForUserIDReceivedInvocations.append(userID)
|
||||
}
|
||||
if let directRoomForUserIDClosure = directRoomForUserIDClosure {
|
||||
return await directRoomForUserIDClosure(userID)
|
||||
return directRoomForUserIDClosure(userID)
|
||||
} else {
|
||||
return directRoomForUserIDReturnValue
|
||||
}
|
||||
@@ -15143,15 +15143,15 @@ class TimelineProxyMock: TimelineProxyProtocol, @unchecked Sendable {
|
||||
}
|
||||
var retryDecryptionSessionIDsReceivedSessionIDs: [String]?
|
||||
var retryDecryptionSessionIDsReceivedInvocations: [[String]?] = []
|
||||
var retryDecryptionSessionIDsClosure: (([String]?) async -> Void)?
|
||||
var retryDecryptionSessionIDsClosure: (([String]?) -> Void)?
|
||||
|
||||
func retryDecryption(sessionIDs: [String]?) async {
|
||||
func retryDecryption(sessionIDs: [String]?) {
|
||||
retryDecryptionSessionIDsCallsCount += 1
|
||||
retryDecryptionSessionIDsReceivedSessionIDs = sessionIDs
|
||||
DispatchQueue.main.async {
|
||||
self.retryDecryptionSessionIDsReceivedInvocations.append(sessionIDs)
|
||||
}
|
||||
await retryDecryptionSessionIDsClosure?(sessionIDs)
|
||||
retryDecryptionSessionIDsClosure?(sessionIDs)
|
||||
}
|
||||
//MARK: - paginateBackwards
|
||||
|
||||
|
||||
Reference in New Issue
Block a user