Make badge count accurate

Previously it would reset when refreshing the inbox. Now it tracks
changes to conversation unreadCounts.

Fixes #200
This commit is contained in:
lilia 2015-03-23 12:35:20 -07:00
parent c4ae7a21d8
commit 6509561795
2 changed files with 13 additions and 2 deletions

View file

@ -23,7 +23,5 @@
window.location = '/options.html';
} else {
new bg.Whisper.InboxView().$el.prependTo(bg.$('body',document));
bg.textsecure.storage.putUnencrypted("unreadCount", 0);
extension.navigator.setBadgeText("");
}
}());