From 1be0d78d3532e5747d81a86090bc8fc9fd259fb4 Mon Sep 17 00:00:00 2001 From: Claudemir Todo Bom Date: Mon, 1 Jul 2024 17:50:20 -0300 Subject: [PATCH] messagesList: fix display of recording/typing animation --- frontend/src/components/MessagesList/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/MessagesList/index.js b/frontend/src/components/MessagesList/index.js index 82c7f648..5f8d69fd 100644 --- a/frontend/src/components/MessagesList/index.js +++ b/frontend/src/components/MessagesList/index.js @@ -567,8 +567,8 @@ const MessagesList = ({ ticket, ticketId, isGroup }) => { const { scrollTop, clientHeight, scrollHeight } = scrollRef.current; console.log({ presence: data.presence, scrollTop, clientHeight, scrollHeight}); const isAtBottom = scrollTop + clientHeight >= (scrollHeight - clientHeight/4); - setContactPresence(data.presence); if (data?.ticketId === ticket.id) { + setContactPresence(data.presence); if ([ "composing", "recording"].includes(data.presence)) { if (isAtBottom) { scrollToBottom();