Skip to content

Commit f323d12

Browse files
committed
Ensure that UnreadBadge visibility is always updated based on counts
1 parent 3d56f6a commit f323d12

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/shared/unread_badge.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ impl UnreadBadgeRef {
127127
if let Some(mut inner) = self.borrow_mut() {
128128
inner.unread_mentions = num_unread_mentions;
129129
inner.unread_messages = num_unread_messages;
130+
inner.visible = num_unread_mentions > 0 || num_unread_messages > 0;
130131
}
131132
}
132133
}

0 commit comments

Comments
 (0)