add error message on MMS compression failed

This commit is contained in:
EveX 2022-01-27 01:44:27 +01:00
parent 0774e0cb0f
commit 2605a61005
3 changed files with 13 additions and 1 deletions

View file

@ -671,6 +671,13 @@ class ThreadActivity : SimpleActivity() {
if (compressedUri != null) {
attachmentSelections[originalUriString] = AttachmentSelection(compressedUri, false)
loadAttachmentPreview(attachmentView, compressedUri)
} else {
toast(R.string.compress_error)
thread_attachments_wrapper.removeView(attachmentView)
attachmentSelections.remove(originalUriString)
if (attachmentSelections.isEmpty()) {
thread_attachments_holder.beGone()
}
}
checkSendMessageAvailability()
attachmentView.thread_attachment_progress.beGone()