Merge pull request #805 from torhve/notificationsyncbug

Fix notification count update
This commit is contained in:
Lorenz Hübschle-Schneider 2016-08-11 14:13:31 +02:00 committed by GitHub
commit 5054d6ba6d

View file

@ -359,9 +359,11 @@ weechat.factory('handlers', ['$rootScope', '$log', 'models', 'plugins', 'notific
// 1 is message
buffer.unread = l.count[1];
// 2 is private
buffer.notification = l.count[2];
// Use += so count[2] or count[3] doesn't overwrite each other
buffer.notification += l.count[2];
// 3 is highlight
buffer.notification = l.count[3];
// Use += so count[2] or count[3] doesn't overwrite each other
buffer.notification += l.count[3];
/* Since there is unread messages, we can guess
* what the last read line is and update it accordingly
*/