From ef01779d6188e613eaf6e13189dc34db4cab025a Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 9 Jan 2025 13:24:16 +0530 Subject: [PATCH] fix: Message grouping logic (#10656) --- .../dashboard/components-next/message/MessageList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/message/MessageList.vue b/app/javascript/dashboard/components-next/message/MessageList.vue index 97fb16043..658db2b4d 100644 --- a/app/javascript/dashboard/components-next/message/MessageList.vue +++ b/app/javascript/dashboard/components-next/message/MessageList.vue @@ -74,7 +74,7 @@ const shouldGroupWithNext = (index, searchList) => { nextMessageType === MESSAGE_TYPES.TEMPLATE && currentMessageType === MESSAGE_TYPES.TEMPLATE; - if (!hasSameSender || !areBothTemplates) return false; + if (!hasSameSender || areBothTemplates) return false; // Check if messages are in the same minute by rounding down to nearest minute return Math.floor(next.createdAt / 60) === Math.floor(current.createdAt / 60);