From d549ca49c00dca50d73d351762635a7e85699eba Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Sat, 2 Nov 2024 21:11:32 +0400 Subject: [PATCH] Custom Emoji: Fix adaptive preview color (#5113) --- src/components/common/StickerView.tsx | 1 + src/components/common/reactions/CustomEmojiEffect.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/common/StickerView.tsx b/src/components/common/StickerView.tsx index c9964fd56..11b3c74d5 100644 --- a/src/components/common/StickerView.tsx +++ b/src/components/common/StickerView.tsx @@ -162,6 +162,7 @@ const StickerView: FC = ({ thumbClassName, 'sticker-media', )} + style={filterStyle} alt="" draggable={false} /> diff --git a/src/components/common/reactions/CustomEmojiEffect.tsx b/src/components/common/reactions/CustomEmojiEffect.tsx index 14cabfa18..8298a93fb 100644 --- a/src/components/common/reactions/CustomEmojiEffect.tsx +++ b/src/components/common/reactions/CustomEmojiEffect.tsx @@ -31,7 +31,7 @@ const CustomEmojiEffect: FC = ({ particleSize, onEnded, }) => { - const stickerHash = getStickerHashById(reaction.documentId); + const stickerHash = getStickerHashById(reaction.documentId, true); const previewMediaData = useMedia(!isLottie ? stickerHash : undefined);