瀏覽代碼

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),
                                                                    size: CGSize(width: 500, height: 500)))
             playButtonView.isHidden = true
-            accessibilityLabel = String.localized("gif")
+            accessibilityLabel = msg.type == DC_MSG_GIF ? String.localized("gif") : String.localized("image")
             setAspectRatioFor(message: msg)
         } else if msg.type == DC_MSG_IMAGE, let image = msg.image {
             contentImageView.image = image