Skip to content

Commit

Permalink
Merge pull request #2305 from daostack/feature/CW-2287-add-item-query…
Browse files Browse the repository at this point in the history
…-param-to-inbox
  • Loading branch information
pvm-code authored Nov 9, 2023
2 parents 36c411b + 7a7483a commit cff5098
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 cff5098

Please sign in to comment.