Don't show inline translation if has card

This commit is contained in:
Lim Chee Aun 2023-07-22 10:10:41 +08:00
parent 075c729807
commit ac9962b051

View file

@ -260,6 +260,7 @@ function Status({
!previewMode &&
!spoilerText &&
!poll &&
!card &&
!mediaAttachments?.length &&
contentLength > 0 &&
contentLength <= INLINE_TRANSLATE_LIMIT
@ -271,6 +272,7 @@ function Status({
previewMode,
spoilerText,
poll,
card,
mediaAttachments,
content,
]);