mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Update the SDK. (#3407)
Fixes a bug where we couldn't open images sent by EXA with a mimetype of image/*
This commit is contained in:
@@ -35,7 +35,11 @@ actor MediaLoader: MediaLoaderProtocol {
|
||||
}
|
||||
|
||||
func loadMediaFileForSource(_ source: MediaSourceProxy, filename: String?) async throws -> MediaFileHandleProxy {
|
||||
let result = try await client.getMediaFile(mediaSource: source.underlyingSource, body: filename, mimeType: source.mimeType ?? "application/octet-stream", useCache: true, tempDir: nil)
|
||||
let result = try await client.getMediaFile(mediaSource: source.underlyingSource,
|
||||
filename: filename,
|
||||
mimeType: source.mimeType ?? "application/octet-stream",
|
||||
useCache: true,
|
||||
tempDir: nil)
|
||||
|
||||
return MediaFileHandleProxy(handle: result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user