Skip to content

Commit

Permalink
treat a missing commonFeedObjectUserUnique for the user as "New"
Browse files Browse the repository at this point in the history
  • Loading branch information
budnik9 committed Oct 26, 2023
1 parent 51ce064 commit 5de6e79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,10 @@ const DiscussionFeedCard = forwardRef<FeedItemRef, DiscussionFeedCardProps>(
isFollowing={feedItemFollow.isFollowing}
isLoading={isLoading}
menuItems={menuItems}
seenOnce={feedItemUserMetadata?.seenOnce ?? true}
seen={feedItemUserMetadata?.seen ?? true}
seenOnce={
feedItemUserMetadata?.seenOnce ?? !isFeedItemUserMetadataFetched
}
seen={feedItemUserMetadata?.seen ?? !isFeedItemUserMetadataFetched}
ownerId={item.userId}
discussionPredefinedType={discussion?.predefinedType}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,10 @@ const ProposalFeedCard = forwardRef<FeedItemRef, ProposalFeedCardProps>(
isFollowing={feedItemFollow.isFollowing}
isLoading={isLoading}
type={item.data.type}
seenOnce={feedItemUserMetadata?.seenOnce ?? true}
seen={feedItemUserMetadata?.seen ?? true}
seenOnce={
feedItemUserMetadata?.seenOnce ?? !isFeedItemUserMetadataFetched
}
seen={feedItemUserMetadata?.seen ?? !isFeedItemUserMetadataFetched}
menuItems={menuItems}
ownerId={item.userId}
>
Expand Down

0 comments on commit 5de6e79

Please sign in to comment.