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) { function completeChans(word) {
const words = []; const words = [];
sidebar.find(".chan") sidebar.find(".chan.active")
.parent()
.find(".chan")
.each(function() { .each(function() {
const self = $(this); const self = $(this);
if (!self.hasClass("lobby")) { if (!self.hasClass("lobby")) {