From 251eb08a637b32851b50795db2505c75fd6ece19 Mon Sep 17 00:00:00 2001 From: MartinCupela <32706194+MartinCupela@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:49:20 +0200 Subject: [PATCH] fix: reflect Message groupStyles prop in the component memoization (#2448) --- src/components/Message/utils.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Message/utils.tsx b/src/components/Message/utils.tsx index 6e781237e..994cfa329 100644 --- a/src/components/Message/utils.tsx +++ b/src/components/Message/utils.tsx @@ -316,6 +316,7 @@ export const areMessageUIPropsEqual = < if (prevProps.endOfGroup !== nextProps.endOfGroup) return false; if (prevProps.mutes?.length !== nextProps.mutes?.length) return false; if (prevProps.readBy?.length !== nextProps.readBy?.length) return false; + if (prevProps.groupStyles !== nextProps.groupStyles) return false; if (prevProps.showDetailedReactions !== nextProps.showDetailedReactions) { return false;