Message List: Fix loading if chat last message is tall (#4555)
This commit is contained in:
parent
5f4103f64f
commit
d87d53ca66
@ -381,7 +381,7 @@ const MessageList: FC<OwnProps & StateProps> = ({
|
|||||||
|
|
||||||
const container = containerRef.current!;
|
const container = containerRef.current!;
|
||||||
|
|
||||||
if (!messageIds || (
|
if (!messageIds || messageIds.length === 1 || (
|
||||||
messageIds.length < MESSAGE_LIST_SLICE / 2
|
messageIds.length < MESSAGE_LIST_SLICE / 2
|
||||||
&& (container.firstElementChild as HTMLDivElement).clientHeight <= container.offsetHeight
|
&& (container.firstElementChild as HTMLDivElement).clientHeight <= container.offsetHeight
|
||||||
)) {
|
)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user