mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Bump the RustSDK to v1.1.22
This commit is contained in:
@@ -210,7 +210,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
return await Task.dispatch(on: clientQueue) {
|
||||
do {
|
||||
let data = try Data(contentsOf: media.url)
|
||||
let matrixUrl = try self.client.uploadMedia(mimeType: mimeType, data: [UInt8](data), progressWatcher: nil)
|
||||
let matrixUrl = try self.client.uploadMedia(mimeType: mimeType, data: data, progressWatcher: nil)
|
||||
return .success(matrixUrl)
|
||||
} catch let error as ClientError {
|
||||
return .failure(ClientProxyError.failedUploadingMedia(error.code))
|
||||
@@ -328,7 +328,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
|
||||
do {
|
||||
let data = try Data(contentsOf: imageURL)
|
||||
try self.client.uploadAvatar(mimeType: mimeType, data: [UInt8](data))
|
||||
try self.client.uploadAvatar(mimeType: mimeType, data: data)
|
||||
Task {
|
||||
await self.loadUserAvatarURL()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user