diff --git a/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx b/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx index 93441ebc08..5ffca2f17b 100644 --- a/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx +++ b/src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx @@ -615,6 +615,12 @@ const FeedLayout: ForwardRefRenderFunction = ( } }, [batchNumber]); + useEffect(() => { + if (sharedFeedItemId && isTabletView && allFeedItems) { + setActiveChatItem({ feedItemId: sharedFeedItemId }); + } + }, [sharedFeedItemId, isTabletView, allFeedItems]); + useImperativeHandle( ref, () => ({ diff --git a/src/pages/inbox/BaseInbox.tsx b/src/pages/inbox/BaseInbox.tsx index 8be5cfa57e..fb3da68852 100644 --- a/src/pages/inbox/BaseInbox.tsx +++ b/src/pages/inbox/BaseInbox.tsx @@ -272,6 +272,7 @@ const InboxPage: FC = (props) => { renderChatChannelItem={renderChatChannelItem} onFeedItemUpdate={handleFeedItemUpdate} getLastMessage={getLastMessage} + sharedFeedItemId={sharedFeedItemId} emptyText={ isActiveUnreadInboxItemsQueryParam ? "Hurry! No unread items in your inbox :-)"