Fix notification count update

paste-quickfix
Tor Hveem 9 years ago
parent 99d0081ee9
commit e903acfb0d
No known key found for this signature in database
GPG Key ID: 7C3ECF7851B7F195
  1. 6
      js/handlers.js

@ -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
*/

Loading…
Cancel
Save