Matrix rust sdk : use tempDir in LoadMediaFile

This commit is contained in:
ganfra
2023-06-08 17:02:45 +02:00
parent bca3f58062
commit 0fed1e0e8d

View File

@@ -75,8 +75,7 @@ class RustMediaLoader(
mediaSource = mediaSource,
body = body,
mimeType = mimeType ?: "application/octet-stream",
//TODO uncomment when rust api will be merged
//tempDir = cacheDirectory.path,
tempDir = cacheDirectory.path,
)
RustMediaFile(mediaFile)
}