Message: Fix autoscroll on last message in chat (#3116)

This commit is contained in:
Alexander Zinchuk 2023-05-03 20:20:33 +04:00
parent cdab35fd4d
commit 4406831e02

View File

@ -675,7 +675,7 @@ const Message: FC<OwnProps & StateProps> = ({
|| undefined;
useAuthorWidth(ref, signature);
const shouldFocusOnResize = isLastInGroup;
const shouldFocusOnResize = isLastInList;
const handleResize = useCallback((entry: ResizeObserverEntry) => {
const lastHeight = messageHeightRef.current;