change: Use getErrorString for UploadServerError types (#726)
This commit is contained in:
parent
c5fe30088d
commit
a2fa9f60fb
|
@ -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)),
|
||||||
|
|
Loading…
Reference in New Issue