change: Use getErrorString for UploadServerError types (#726)

This commit is contained in:
Nik Clayton 2024-06-05 18:21:20 +02:00 committed by GitHub
parent c5fe30088d
commit a2fa9f60fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ class ComposeActivity :
lifecycleScope.launch { lifecycleScope.launch {
viewModel.uploadError.collect { throwable -> viewModel.uploadError.collect { throwable ->
if (throwable is UploadServerError) { if (throwable is UploadServerError) {
displayTransientMessage(throwable.errorMessage) displayTransientMessage(throwable.getErrorString(this@ComposeActivity))
} else { } else {
displayTransientMessage( displayTransientMessage(
getString(R.string.error_media_upload_sending_fmt, throwable.getErrorString(this@ComposeActivity)), getString(R.string.error_media_upload_sending_fmt, throwable.getErrorString(this@ComposeActivity)),