diff --git a/src/components/middle/MessageListBottomMarker.tsx b/src/components/middle/MessageListBottomMarker.tsx index 143f63648..2489553ab 100644 --- a/src/components/middle/MessageListBottomMarker.tsx +++ b/src/components/middle/MessageListBottomMarker.tsx @@ -1,23 +1,25 @@ import { memo, useRef } from '@teact'; +import { FocusDirection } from '../../types'; + import buildClassName from '../../util/buildClassName'; import useFocusMessageListElement from './message/hooks/useFocusMessageListElement'; type OwnProps = { - isJustAdded?: boolean; isFocused?: boolean; className?: string; }; -const MessageListBottomMarker = ({ isJustAdded, isFocused, className }: OwnProps) => { +const MessageListBottomMarker = ({ isFocused, className }: OwnProps) => { const ref = useRef(); useFocusMessageListElement({ elementRef: ref, - isJustAdded, + isJustAdded: true, isFocused, noFocusHighlight: true, + focusDirection: FocusDirection.Down, }); return ( diff --git a/src/components/middle/MessageListContent.tsx b/src/components/middle/MessageListContent.tsx index d64531310..9db6e3ada 100644 --- a/src/components/middle/MessageListContent.tsx +++ b/src/components/middle/MessageListContent.tsx @@ -463,7 +463,6 @@ const MessageListContent = ({ {isViewportNewest && (