mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Inline setUnreadCount
// FREEBIE
This commit is contained in:
@@ -62,7 +62,13 @@
|
||||
);
|
||||
storage.put("unreadCount", newUnreadCount);
|
||||
|
||||
setUnreadCount(newUnreadCount);
|
||||
if (newUnreadCount > 0) {
|
||||
window.setBadgeCount(newUnreadCount);
|
||||
window.document.title = "Signal (" + newUnreadCount + ")";
|
||||
} else {
|
||||
window.setBadgeCount(0);
|
||||
window.document.title = "Signal";
|
||||
}
|
||||
if (newUnreadCount === 0) {
|
||||
window.clearAttention();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user