mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
sdk: update to 25.04.14
This commit is contained in:
@@ -437,7 +437,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
await waitForRoomToSync(roomID: roomID, timeout: .seconds(30))
|
||||
|
||||
return .success(())
|
||||
} catch ClientError.MatrixApi(.forbidden, _, _) {
|
||||
} catch ClientError.MatrixApi(.forbidden, _, _, _) {
|
||||
MXLog.error("Failed joining roomAlias: \(roomID) forbidden")
|
||||
return .failure(.forbiddenAccess)
|
||||
} catch {
|
||||
@@ -453,7 +453,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
await waitForRoomToSync(roomID: room.id(), timeout: .seconds(30))
|
||||
|
||||
return .success(())
|
||||
} catch ClientError.MatrixApi(.forbidden, _, _) {
|
||||
} catch ClientError.MatrixApi(.forbidden, _, _, _) {
|
||||
MXLog.error("Failed joining roomAlias: \(roomAlias) forbidden")
|
||||
return .failure(.forbiddenAccess)
|
||||
} catch {
|
||||
@@ -494,7 +494,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
let data = try Data(contentsOf: media.url)
|
||||
let matrixUrl = try await client.uploadMedia(mimeType: mimeType, data: data, progressWatcher: nil)
|
||||
return .success(matrixUrl)
|
||||
} catch let ClientError.MatrixApi(errorKind, _, _) {
|
||||
} catch let ClientError.MatrixApi(errorKind, _, _, _) {
|
||||
MXLog.error("Failed uploading media with error kind: \(errorKind)")
|
||||
return .failure(ClientProxyError.failedUploadingMedia(errorKind))
|
||||
} catch {
|
||||
@@ -526,7 +526,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
do {
|
||||
let roomPreview = try await client.getRoomPreviewFromRoomId(roomId: identifier, viaServers: via)
|
||||
return try .success(RoomPreviewProxy(roomPreview: roomPreview))
|
||||
} catch ClientError.MatrixApi(.forbidden, _, _) {
|
||||
} catch ClientError.MatrixApi(.forbidden, _, _, _) {
|
||||
MXLog.error("Failed retrieving preview for room: \(identifier) is private")
|
||||
return .failure(.roomPreviewIsPrivate)
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user