Show channels for only active server in autocomplete

Fix #1381.
This commit is contained in:
milindl 2018-01-20 17:25:36 +05:30
parent b2eebfa65e
commit d6d54c2c56

View file

@ -282,7 +282,9 @@ function completeCommands(word) {
function completeChans(word) {
const words = [];
sidebar.find(".chan")
sidebar.find(".chan.active")
.parent()
.find(".chan")
.each(function() {
const self = $(this);
if (!self.hasClass("lobby")) {