Merge pull request #1993 from milindl/feat/chan-auto-current

Show channels for only active server in autocomplete
This commit is contained in:
Jérémie Astori 2018-01-30 00:12:45 -05:00 committed by GitHub
commit ff9dd3833e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")) {