Skip to content

Commit

Permalink
add "item" query param to inbox page
Browse files Browse the repository at this point in the history
  • Loading branch information
budnik9 committed Nov 8, 2023
1 parent 36c411b commit 7a7483a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/commonFeed/components/FeedLayout/FeedLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,12 @@ const FeedLayout: ForwardRefRenderFunction<FeedLayoutRef, FeedLayoutProps> = (
}
}, [batchNumber]);

useEffect(() => {
if (sharedFeedItemId && isTabletView && allFeedItems) {
setActiveChatItem({ feedItemId: sharedFeedItemId });
}
}, [sharedFeedItemId, isTabletView, allFeedItems]);

useImperativeHandle(
ref,
() => ({
Expand Down
1 change: 1 addition & 0 deletions src/pages/inbox/BaseInbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ const InboxPage: FC<InboxPageProps> = (props) => {
renderChatChannelItem={renderChatChannelItem}
onFeedItemUpdate={handleFeedItemUpdate}
getLastMessage={getLastMessage}
sharedFeedItemId={sharedFeedItemId}
emptyText={
isActiveUnreadInboxItemsQueryParam
? "Hurry! No unread items in your inbox :-)"
Expand Down

0 comments on commit 7a7483a

Please sign in to comment.