Improved badge descriptions

This commit is contained in:
Kolja Lampe
2016-06-04 01:41:15 +02:00
parent c615c54903
commit a2713885ab

View File

@@ -462,10 +462,10 @@ var showUnreadBadgeWindows = function(unreadCount, mentionCount) {
if (mentionCount > 0) {
const dataURL = badge.createDataURL(mentionCount.toString(), "#FF1744", "#580817"); // Material Red A400
sendBadge(dataURL, 'You have unread mention (' + mentionCount + ')');
sendBadge(dataURL, 'You have unread mentions (' + mentionCount + ')');
} else if (unreadCount > 0) {
const dataURL = badge.createDataURL('•', "#00e5ff", "#06545D"); // Material Cyan A400
sendBadge(dataURL, 'You have unread channels');
sendBadge(dataURL, 'You have unread channels (' + unreadCount + ')');
} else {
sendBadge(null, 'You have no unread messages');
}