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);
// 1 is message
buffer.unread += l.count[1];
// 2 is ?
buffer.unread += l.count[2];
// 2 is private
buffer.notification += l.count[2];
// 3 is highlight
buffer.notification += l.count[3];
/* Since there is unread messages, we can guess