Fix query notifications on first connect

Fixes #284
This commit is contained in:
Lorenz Hübschle-Schneider 2014-05-07 18:57:13 +01:00
parent 236b0da97b
commit 64af1f357c
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ weechat.factory('handlers', ['$rootScope', 'models', 'plugins', function($rootSc
var buffer = models.getBuffer(l.buffer); var buffer = models.getBuffer(l.buffer);
// 1 is message // 1 is message
buffer.unread += l.count[1]; buffer.unread += l.count[1];
// 2 is ? // 2 is private
buffer.unread += l.count[2]; buffer.notification += l.count[2];
// 3 is highlight // 3 is highlight
buffer.notification += l.count[3]; buffer.notification += l.count[3];
/* Since there is unread messages, we can guess /* Since there is unread messages, we can guess