commit cdc0badb4a70e4a41dc1ac4893782d540a8ce0a0
parent 525965eff71627ab2902a96923dfbb49c07c7149
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Thu, 18 May 2023 16:28:42 +0200

refactor: debug messages

Diffstat:
Mapp/src/main/kotlin/me/rhunk/snapenhance/features/impl/downloader/MediaDownloader.kt | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/features/impl/downloader/MediaDownloader.kt b/app/src/main/kotlin/me/rhunk/snapenhance/features/impl/downloader/MediaDownloader.kt @@ -369,7 +369,6 @@ class MediaDownloader : Feature("MediaDownloader", loadParams = FeatureLoadParam //download the message content try { - context.shortToast("Retriving message media") var inputStream: InputStream = CdnDownloader.downloadWithDefaultEndpoints(urlKey) ?: return inputStream = EncryptionUtils.decryptInputStreamFromArroyo( inputStream, @@ -427,7 +426,7 @@ class MediaDownloader : Feature("MediaDownloader", loadParams = FeatureLoadParam ) { dialog: DialogInterface, _: Int -> dialog.dismiss() } context.runOnUiThread { builder.show() } }.onFailure { - context.shortToast("Failed to create preview: ${it.message}") + context.shortToast("Failed to create preview: $it") xposedLog(it) } return