Skip to content

Commit

Permalink
messagesList: fix display of recording/typing animation
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Jul 1, 2024
1 parent 7a07606 commit 1be0d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/MessagesList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1be0d78

Please sign in to comment.