Skip to content

Commit

Permalink
fix: Show badge for threads direct mentions (RocketChat#29587)
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rajpal authored Jun 22, 2023
1 parent 5653f10 commit 4fb0078
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/little-crews-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

fix show badge for thread direct mentions
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function SideBarItemTemplateWithData({
((userMentions || tunreadUser.length) && 'danger') || (threadUnread && 'primary') || (groupMentions && 'warning') || 'secondary';

const isUnread = unread > 0 || threadUnread;
const showBadge = !hideUnreadStatus || (!hideMentionStatus && Boolean(userMentions));
const showBadge = !hideUnreadStatus || (!hideMentionStatus && (Boolean(userMentions) || tunreadUser.length > 0));

const badges = (
<Margins inlineStart={8}>
Expand Down

0 comments on commit 4fb0078

Please sign in to comment.