Clear hotlist in more scenarios

* Clear when switching away from a buffer
 * Clear when sending a message to a buffer
This commit is contained in:
Tor Hveem 2015-03-23 13:32:02 +01:00
parent feaf76f1ea
commit 9432004c5e
2 changed files with 8 additions and 0 deletions

View file

@ -436,6 +436,11 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
if (utils.isMobileUi()) {
$scope.hideSidebar();
}
// Clear the hotlist for this buffer, because presumable you have read
// the messages in this buffer before you switched to the new one
connection.sendHotlistClear();
return models.setActiveBuffer(bufferId, key);
};

View file

@ -104,6 +104,9 @@ weechat.directive('inputBar', function() {
$scope.command = '';
}
// Presumable we are reading the messages if we are sending.
connection.sendHotlistClear();
$scope.getInputNode().focus();
};