Improved the display of the number of unread messages in a chat.