Skip to content

Commit

Permalink
Merge pull request #1 from tiff/patch-1
Browse files Browse the repository at this point in the history
Also show private chat message count in badge
  • Loading branch information
JoschkaSchulz committed Sep 19, 2016
2 parents ba649df + 92ec6a1 commit 3c866bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions protonet/webview.js
@@ -1,8 +1,9 @@
module.exports = (Franz, options) => {
const getMessages = () => {
const unreadMail = $(".badge.unread-meeps").first().html();
const unreadPrivateMessages = parseInt($(".messages .unread-meeps").text());
const unreadGroupMessages = parseInt($(".today .unread-meeps").text());

Franz.setBadge(unreadMail);
Franz.setBadge(unreadPrivateMessages + unreadGroupMessages);
}

Franz.loop(getMessages);
Expand Down

0 comments on commit 3c866bb

Please sign in to comment.