hasUnread
hasUnread is a boolean indicator used in software to denote that there are unread items within a collection, such as messages in a thread, notifications, or feed entries. It is commonly found in messaging apps, email clients, and notification centers to signal new activity that requires the user’s attention.
In practice, hasUnread can be stored as a field on an object (for example, a Conversation or
If not stored as a dedicated flag, hasUnread can be derived from an unreadCount value. Some systems
User interface implications include displaying a badge or highlighting a thread when hasUnread is true. Some
Common pitfalls include stale flags after moves or deletions, performance concerns in very large threads, and
See also: unread status, unreadCount, read receipt, notification badge.