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:
parent
feaf76f1ea
commit
9432004c5e
2 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue