Media: handle PR review remarks

This commit is contained in:
ganfra 2023-05-26 19:09:51 +02:00
parent bae810b190
commit c89d9dd8e6
6 changed files with 8 additions and 9 deletions

View file

@ -44,7 +44,7 @@ class FakeMediaLoader : MatrixMediaLoader {
}
}
override suspend fun loadMediaFile(source: MediaSource, mimeType: String?): Result<MediaFile> {
override suspend fun downloadMediaFile(source: MediaSource, mimeType: String?): Result<MediaFile> {
delay(FAKE_DELAY_IN_MS)
return if (shouldFail) {
Result.failure(RuntimeException())