Просмотр исходного кода

show download failure

tapping on the message, still allows re-downloading
in case of temporary errors.
B. Petersen 3 лет назад
Родитель
Сommit
0acd03666d
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

+ 3 - 1
deltachat-ios/Chat/Views/Cells/BaseMessageCell.swift

@@ -358,8 +358,10 @@ public class BaseMessageCell: UITableViewCell {
         isActionButtonHidden = !hasWebxdc && !hasHtml && downloadState == DC_DOWNLOAD_DONE
         
         switch downloadState {
-        case DC_DOWNLOAD_FAILURE, DC_DOWNLOAD_AVAILABLE:
+        case DC_DOWNLOAD_AVAILABLE:
             actionButton.setTitle(String.localized("download"), for: .normal)
+        case DC_DOWNLOAD_FAILURE:
+            actionButton.setTitle(String.localized("download_failed"), for: .normal)
         case DC_DOWNLOAD_IN_PROGRESS:
             actionButton.isEnabled = false
             actionButton.setTitle(String.localized("downloading"), for: .normal)