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, type,
threadTopMessageId, threadTopMessageId,
threadFirstMessageId, threadFirstMessageId,
Boolean(hasLinkedChat), hasLinkedChat,
messageGroups ? type === 'scheduled' : false, messageGroups ? type === 'scheduled' : false,
!messageGroups || !shouldAnimateAppearanceRef.current, !messageGroups || !shouldAnimateAppearanceRef.current,
openHistoryCalendar, openHistoryCalendar,
@ -585,7 +585,7 @@ function renderMessages(
type: MessageListType, type: MessageListType,
threadTopMessageId: number | undefined, threadTopMessageId: number | undefined,
threadFirstMessageId: number | undefined, threadFirstMessageId: number | undefined,
hasLinkedChat: boolean, hasLinkedChat: boolean | undefined,
isSchedule: boolean, isSchedule: boolean,
noAppearanceAnimation: boolean, noAppearanceAnimation: boolean,
openHistoryCalendar: Function, openHistoryCalendar: Function,