mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +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
@@ -353,15 +353,13 @@ class ClientProxy: ClientProxyProtocol {
|
||||
try? await client.accountUrl(action: action).flatMap(URL.init(string:))
|
||||
}
|
||||
|
||||
func directRoomForUserID(_ userID: String) async -> Result<String?, ClientProxyError> {
|
||||
await Task.dispatch(on: clientQueue) {
|
||||
do {
|
||||
let roomID = try self.client.getDmRoom(userId: userID)?.id()
|
||||
return .success(roomID)
|
||||
} catch {
|
||||
MXLog.error("Failed retrieving direct room for userID: \(userID) with error: \(error)")
|
||||
return .failure(.sdkError(error))
|
||||
}
|
||||
func directRoomForUserID(_ userID: String) -> Result<String?, ClientProxyError> {
|
||||
do {
|
||||
let roomID = try client.getDmRoom(userId: userID)?.id()
|
||||
return .success(roomID)
|
||||
} catch {
|
||||
MXLog.error("Failed retrieving direct room for userID: \(userID) with error: \(error)")
|
||||
return .failure(.sdkError(error))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user