From e6b7d2ff9cc38368c24c428de70b1eefec6d4415 Mon Sep 17 00:00:00 2001 From: kyori19 Date: Thu, 21 May 2020 21:50:19 +0900 Subject: [PATCH] Fix large media uploading (#1800) --- .../keylesspalace/tusky/components/compose/MediaUploader.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/compose/MediaUploader.kt b/app/src/main/java/com/keylesspalace/tusky/components/compose/MediaUploader.kt index 73fa6d11f..1fa03d54b 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/compose/MediaUploader.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/compose/MediaUploader.kt @@ -77,8 +77,7 @@ class MediaUploaderImpl( .fromCallable { if (shouldResizeMedia(media)) { downsize(media) - } - media + } else media } .switchMap { upload(it) } .subscribeOn(Schedulers.io())