Message List: Fix exceptions when switching chat (#2147)
This commit is contained in:
parent
08ef6130b7
commit
50d5e6caaa
@ -268,9 +268,13 @@ const MessageList: FC<OwnProps & StateProps> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const container = containerRef.current;
|
||||||
|
if (!container) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
isScrollingRef.current = true;
|
isScrollingRef.current = true;
|
||||||
|
|
||||||
const container = containerRef.current!;
|
|
||||||
|
|
||||||
if (!memoFocusingIdRef.current) {
|
if (!memoFocusingIdRef.current) {
|
||||||
updateStickyDates(container, hasTools);
|
updateStickyDates(container, hasTools);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user