From feb8f46966c69c39ab801e2f7dffa32cc4002653 Mon Sep 17 00:00:00 2001 From: William Grant Date: Thu, 18 May 2023 17:20:18 +1000 Subject: [PATCH] fix: removed redundant document check from getTypeLabel --- .../message/message-content/quote/QuoteText.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ts/components/conversation/message/message-content/quote/QuoteText.tsx b/ts/components/conversation/message/message-content/quote/QuoteText.tsx index b6a1efd2b..033dfbcf6 100644 --- a/ts/components/conversation/message/message-content/quote/QuoteText.tsx +++ b/ts/components/conversation/message/message-content/quote/QuoteText.tsx @@ -55,14 +55,7 @@ function getTypeLabel({ if (MIME.isAudio(contentType)) { return window.i18n('audio'); } - if ( - !GoogleChrome.isVideoTypeSupported(contentType) && - !GoogleChrome.isImageTypeSupported(contentType) && - !MIME.isAudio(contentType) - ) { - return window.i18n('document'); - } - return; + return window.i18n('document'); } export const QuoteText = (