Skip to content

Commit

Permalink
fix: messagerie scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
octo-theg committed Jun 18, 2024
1 parent 464078a commit fede6ff
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/chat/Conversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,7 @@ export function Conversation({
}, [jeuneChat.chatId, observerMessages])

useEffect(() => {
if (
messagesByDay?.length &&
nombrePagesChargees === 1 &&
!toggleAfficherRecherche
) {
if (messagesByDay?.length && nombrePagesChargees === 1) {
const dernierJour = conteneurMessagesRef.current!.lastElementChild
const lastMessage = dernierJour!.querySelector('li:last-child')

Expand Down

0 comments on commit fede6ff

Please sign in to comment.