Merge pull request #1036 from lorenzhs/fix-hotlist-sync

Respect hotlist clearing setting on buffer switch & message send
This commit is contained in:
Lorenz Hübschle-Schneider 2018-11-05 17:12:22 +01:00 committed by GitHub
commit 162a23304b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -520,7 +520,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// the messages in this buffer before you switched to the new one
// this is only needed with new type of clearing since in the old
// way WeeChat itself takes care of that part
if (models.version[0] >= 1) {
if (settings.hotlistsync && models.version[0] >= 1) {
connection.sendHotlistClear();
}

View File

@ -200,7 +200,7 @@ weechat.directive('inputBar', function() {
}
// New style clearing requires this, old does not
if (models.version[0] >= 1) {
if (settings.hotlistsync && models.version[0] >= 1) {
connection.sendHotlistClear();
}