From a2fa9f60fb93b7c7fa0e99fe3ce15d9d4f8ac784 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Wed, 5 Jun 2024 18:21:20 +0200 Subject: [PATCH] change: Use getErrorString for UploadServerError types (#726) --- .../main/java/app/pachli/components/compose/ComposeActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/pachli/components/compose/ComposeActivity.kt b/app/src/main/java/app/pachli/components/compose/ComposeActivity.kt index f1083489a..005390b49 100644 --- a/app/src/main/java/app/pachli/components/compose/ComposeActivity.kt +++ b/app/src/main/java/app/pachli/components/compose/ComposeActivity.kt @@ -509,7 +509,7 @@ class ComposeActivity : lifecycleScope.launch { viewModel.uploadError.collect { throwable -> if (throwable is UploadServerError) { - displayTransientMessage(throwable.errorMessage) + displayTransientMessage(throwable.getErrorString(this@ComposeActivity)) } else { displayTransientMessage( getString(R.string.error_media_upload_sending_fmt, throwable.getErrorString(this@ComposeActivity)),