From 897c2f69ef783a339d40938609e52ad83717610f Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 19 Mar 2022 21:19:32 +0100 Subject: [PATCH] [Refactoring] Sticker: Remove unneeded IDs --- src/components/middle/message/Sticker.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/middle/message/Sticker.tsx b/src/components/middle/message/Sticker.tsx index 7a18fb44..95a2e0ae 100644 --- a/src/components/middle/message/Sticker.tsx +++ b/src/components/middle/message/Sticker.tsx @@ -4,7 +4,7 @@ import { ApiMessage } from '../../../api/types'; import { NO_STICKER_SET_ID } from '../../../config'; import { getStickerDimensions } from '../../common/helpers/mediaDimensions'; -import { getMessageHtmlId, getMessageMediaFormat, getMessageMediaHash } from '../../../global/helpers'; +import { getMessageMediaFormat, getMessageMediaHash } from '../../../global/helpers'; import buildClassName from '../../../util/buildClassName'; import { ObserveFn, useIsIntersecting } from '../../../hooks/useIntersectionObserver'; import useMedia from '../../../hooks/useMedia'; @@ -85,7 +85,6 @@ const Sticker: FC = ({
{(!isMediaReady || (isVideo && !canDisplayVideo)) && ( = ({ )} {!isLottie && !isVideo && ( = ({ )} {isVideo && canDisplayVideo && isMediaReady && (