From f69e837cb3cdd84d1682eedb3f8fceffa02d4c74 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 93a9e975..4e09046a 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 @@ -78,8 +78,7 @@ class MediaUploaderImpl( .fromCallable { if (shouldResizeMedia(media, imageLimit)) { downsize(media, imageLimit) - } - media + } else media } .switchMap { upload(it, videoLimit, imageLimit) } .subscribeOn(Schedulers.io())