Message List: Fix scroll jumps in channels with comments

This commit is contained in:
Alexander Zinchuk 2021-06-15 14:15:12 +03:00
parent 33c30667b2
commit e86b0a00d6

View File

@ -559,7 +559,7 @@ const MessageList: FC<OwnProps & StateProps & DispatchProps> = ({
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,