Media: finally revert to using only uri but with the proper scheme..
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user