Media: finally revert to using only uri but with the proper scheme..

This commit is contained in:
ganfra
2023-06-02 08:49:28 +02:00
parent ab48735ddc
commit 70e9dfa25d
11 changed files with 37 additions and 95 deletions

View File

@@ -17,6 +17,7 @@
package io.element.android.libraries.matrix.api.media
import java.io.Closeable
import java.io.File
/**
* A wrapper around a media file on the disk.
@@ -25,3 +26,7 @@ import java.io.Closeable
interface MediaFile : Closeable {
fun path(): String
}
fun MediaFile.toFile(): File {
return File(path())
}