Skip to content

Commit

Permalink
Merge pull request #143 from qwertier/develop
Browse files Browse the repository at this point in the history
New message count in tray. Now takes into account muted chats
  • Loading branch information
stanfieldr authored Jan 12, 2018
2 parents 2e4976a + 6d8bdf7 commit 9f8156b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/skype.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@

for (let i = unreadCounters.length - 1; i >= 0; i--) {
try {
sum += Number(unreadCounters[i].querySelector('p').textContent);
let isMuted = unreadCounters[i].previousElementSibling.
classList.contains('notificationsDisabledIndicator');
if (!isMuted) {
sum += Number(unreadCounters[i].querySelector('p').textContent);
}
} catch(e) {
// if we're unlucky, unseenNotifications will be removed during the loop
}
Expand Down

0 comments on commit 9f8156b

Please sign in to comment.