Merge pull request #1077 from Techman/master+fix-highlights

Fix highlights notify_private buffers with where notify level is 0
This commit is contained in:
Lorenz Hübschle-Schneider 2019-12-06 12:35:10 +01:00 committed by GitHub
commit 5c401b6923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ weechat.factory('handlers', ['$rootScope', '$log', 'models', 'plugins', 'notific
$rootScope.$emit('notificationChanged'); $rootScope.$emit('notificationChanged');
} }
if ((buffer.notify !== 0 && message.highlight) || _.contains(message.tags, 'notify_private')) { if ((buffer.notify !== 0) && (message.highlight || _.contains(message.tags, 'notify_private'))) {
buffer.notification++; buffer.notification++;
server.unread++; server.unread++;
notifications.createHighlight(buffer, message); notifications.createHighlight(buffer, message);