From e86b0a00d6b352a190df76f7db3c7ad4cd036d7b Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 15 Jun 2021 14:15:12 +0300 Subject: [PATCH] Message List: Fix scroll jumps in channels with comments --- src/components/middle/MessageList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/middle/MessageList.tsx b/src/components/middle/MessageList.tsx index 11a394213..443b0f4a1 100644 --- a/src/components/middle/MessageList.tsx +++ b/src/components/middle/MessageList.tsx @@ -559,7 +559,7 @@ const MessageList: FC = ({ type, threadTopMessageId, threadFirstMessageId, - Boolean(hasLinkedChat), + hasLinkedChat, messageGroups ? type === 'scheduled' : false, !messageGroups || !shouldAnimateAppearanceRef.current, openHistoryCalendar, @@ -585,7 +585,7 @@ function renderMessages( type: MessageListType, threadTopMessageId: number | undefined, threadFirstMessageId: number | undefined, - hasLinkedChat: boolean, + hasLinkedChat: boolean | undefined, isSchedule: boolean, noAppearanceAnimation: boolean, openHistoryCalendar: Function,