Improve images on timeline

This commit is contained in:
ganfra 2022-11-22 14:15:38 +01:00
parent 3e6c3d0397
commit 1948e75ece
6 changed files with 31 additions and 9 deletions

View file

@ -5,7 +5,6 @@ import coil.ImageLoader
import coil.ImageLoaderFactory
import com.airbnb.mvrx.Mavericks
import io.element.android.x.matrix.MatrixInstance
import io.element.android.x.matrix.media.MediaFetcher
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.plus
@ -26,7 +25,7 @@ class ElementXApplication : Application(), ImageLoaderFactory {
return ImageLoader
.Builder(this)
.components {
add(MediaFetcher.Factory(MatrixInstance.getInstance()))
MatrixInstance.getInstance().registerComponents(this)
}
.build()
}