Skip to content

Commit

Permalink
Merge pull request #2323 from daostack/cw-2254-@-unread-mention
Browse files Browse the repository at this point in the history
Add (personal) @ icon on unread “mentioned” stream #2254
  • Loading branch information
roienatan authored Nov 20, 2023
2 parents 804b0d9 + 45bc1c3 commit 76f501f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ const DiscussionFeedCard = forwardRef<FeedItemRef, DiscussionFeedCardProps>(
ownerId={item.userId}
discussionPredefinedType={discussion?.predefinedType}
hasUnseenMention={
feedItemUserMetadata?.hasUnseenMention ??
!isFeedItemUserMetadataFetched
isFeedItemUserMetadataFetched &&
feedItemUserMetadata?.hasUnseenMention
}
>
{renderContent()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@

.hasUnseenMention {
color: $c-pink-primary;
margin-left: 0.75rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ const ProposalFeedCard = forwardRef<FeedItemRef, ProposalFeedCardProps>(
ownerId={item.userId}
commonId={commonId}
hasUnseenMention={
feedItemUserMetadata?.hasUnseenMention ??
!isFeedItemUserMetadataFetched
isFeedItemUserMetadataFetched &&
feedItemUserMetadata?.hasUnseenMention
}
>
{renderContent()}
Expand Down

0 comments on commit 76f501f

Please sign in to comment.