Message List: Fix loading if chat last message is tall (#4555)

This commit is contained in:
Alexander Zinchuk 2024-05-17 15:45:27 +02:00
parent 5f4103f64f
commit d87d53ca66

View File

@ -381,7 +381,7 @@ const MessageList: FC<OwnProps & StateProps> = ({
const container = containerRef.current!;
if (!messageIds || (
if (!messageIds || messageIds.length === 1 || (
messageIds.length < MESSAGE_LIST_SLICE / 2
&& (container.firstElementChild as HTMLDivElement).clientHeight <= container.offsetHeight
)) {