markdown: Add support for inline video thumbnails.

This commit is contained in:
Aman Agrawal
2022-08-09 09:30:16 +00:00
committed by Tim Abbott
parent cb1de9092d
commit 8ef52d55d3
7 changed files with 142 additions and 15 deletions

View File

@@ -118,8 +118,13 @@ export function initialize() {
return true;
}
// Inline image and twitter previews.
if ($target.is("img.message_inline_image") || $target.is("img.twitter-avatar")) {
// Inline image, video and twitter previews.
if (
$target.is("img.message_inline_image") ||
$target.is("video") ||
$target.is(".message_inline_video") ||
$target.is("img.twitter-avatar")
) {
return true;
}