Animated Custom Emoji: Better quality

This commit is contained in:
Alexander Zinchuk 2022-12-01 13:43:56 +01:00
parent 9f15821d15
commit f7ed70c832
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,7 @@ type OwnProps = {
className?: string;
loopLimit?: number;
style?: string;
isBig?: boolean;
withGridFix?: boolean;
withSharedAnimation?: boolean;
sharedCanvasRef?: React.RefObject<HTMLCanvasElement>;
@ -48,6 +49,7 @@ const CustomEmoji: FC<OwnProps> = ({
ref,
documentId,
size = STICKER_SIZE,
isBig,
className,
loopLimit,
style,
@ -143,7 +145,7 @@ const CustomEmoji: FC<OwnProps> = ({
<StickerView
containerRef={containerRef}
sticker={customEmoji}
isSmall
isSmall={!isBig}
size={size}
customColor={customColor}
thumbClassName={styles.thumb}

View File

@ -64,6 +64,7 @@ const AnimatedCustomEmoji: FC<OwnProps & StateProps> = ({
className={buildClassName('AnimatedEmoji media-inner', sticker?.id === LIKE_STICKER_ID && 'like-sticker-thumb')}
style={style}
size={size}
isBig
withSharedAnimation
forceOnHeavyAnimation
observeIntersectionForLoading={observeIntersection}