Explorar o código

adapt accessibility label for webp images and stickers

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
ab1a207a82
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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