chore: Refactor widget (#5621)

This commit is contained in:
David Kubeš
2022-10-14 05:43:11 +02:00
committed by GitHub
parent e310230f62
commit a6960dc2d3
18 changed files with 31 additions and 55 deletions

View File

@@ -29,7 +29,7 @@ const shouldShowAvatar = (message, nextMessage) => {
export const groupConversationBySender = conversationsForADate =>
conversationsForADate.map((message, index) => {
let showAvatar = false;
let showAvatar;
const isLastMessage = index === conversationsForADate.length - 1;
if (isASubmittedFormMessage(message)) {
showAvatar = false;