Skip to content

Commit

Permalink
test QLPreviewController.canPreview() as an alternaive
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Oct 26, 2023
1 parent 87e778a commit db3b9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deltachat-ios/Chat/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ extension ChatViewController: BaseMessageCellDelegate {
if message.type == DC_MSG_WEBXDC {
showWebxdcViewFor(message: message)
} else if message.type != DC_MSG_STICKER {
if previewError && message.type == DC_MSG_VIDEO {
if previewError && message.type == DC_MSG_VIDEO { // QLPreviewController.canPreview() returns `true` for .webm, probably as still sth. is displayed
let alert = UIAlertController(title: "To play this video, share to apps as VLC on the following page.", message: nil, preferredStyle: .safeActionSheet)
alert.addAction(UIAlertAction(title: String.localized("perm_continue"), style: .default, handler: { _ in
self.showMediaGalleryFor(message: message)
Expand Down

0 comments on commit db3b9c0

Please sign in to comment.