Spaces:
Sleeping
Sleeping
Commit
•
12fee2f
1
Parent(s):
d184488
fix: remove unused hook (#91)
Browse files
components/chat/ChatList.tsx
CHANGED
@@ -50,13 +50,6 @@ const ChatList: React.FC<ChatListProps> = ({ chat, userId }) => {
|
|
50 |
// eslint-disable-next-line react-hooks/exhaustive-deps
|
51 |
}, []);
|
52 |
|
53 |
-
// Scroll to bottom when messages are loading
|
54 |
-
useEffect(() => {
|
55 |
-
if (isLoading && messages.length) {
|
56 |
-
scrollToBottom();
|
57 |
-
}
|
58 |
-
}, [isLoading, scrollToBottom, messages]);
|
59 |
-
|
60 |
return (
|
61 |
<Card
|
62 |
className="size-full max-w-5xl overflow-auto relative"
|
|
|
50 |
// eslint-disable-next-line react-hooks/exhaustive-deps
|
51 |
}, []);
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
return (
|
54 |
<Card
|
55 |
className="size-full max-w-5xl overflow-auto relative"
|