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