From 10993cc9bf5af0c7594c2d0054b08e230ce348f8 Mon Sep 17 00:00:00 2001 From: Pavel Meyer Date: Thu, 14 Sep 2023 15:16:20 +0300 Subject: [PATCH] CW-2061 Added condition for infinite home --- src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx b/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx index f23cfc14c0..f488809bd2 100644 --- a/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx +++ b/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx @@ -481,6 +481,10 @@ const FeedLayout: ForwardRefRenderFunction = ( ) => { const { commonId, messageId } = options; + if (chatItem?.feedItemId === feedItemId && !messageId) { + return; + } + if (commonId && commonId !== outerCommon?.id) { history.push( getCommonPagePath(commonId, {