소스 검색

adapt accessibility label for webp images and stickers

cyberta 4 년 전
부모
커밋
ab1a207a82
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      deltachat-ios/Chat/Views/Cells/ImageTextCell.swift

+ 1 - 1
deltachat-ios/Chat/Views/Cells/ImageTextCell.swift

@@ -60,7 +60,7 @@ class ImageTextCell: BaseMessageCell {
                                                                                        blue: 255),
                                                                                        blue: 255),
                                                                    size: CGSize(width: 500, height: 500)))
                                                                    size: CGSize(width: 500, height: 500)))
             playButtonView.isHidden = true
             playButtonView.isHidden = true
-            accessibilityLabel = String.localized("gif")
+            accessibilityLabel = msg.type == DC_MSG_GIF ? String.localized("gif") : String.localized("image")
             setAspectRatioFor(message: msg)
             setAspectRatioFor(message: msg)
         } else if msg.type == DC_MSG_IMAGE, let image = msg.image {
         } else if msg.type == DC_MSG_IMAGE, let image = msg.image {
             contentImageView.image = image
             contentImageView.image = image