Merge pull request #2006 from thelounge/yamanickill/2005-expand

Stop expanding condensed messages on /expand
This commit is contained in:
Jérémie Astori 2018-01-26 19:56:37 -05:00 committed by GitHub
commit 991ec5315d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,12 +55,12 @@ function forceFocus() {
}
function collapse() {
$(".chan.active .toggle-button.opened").click();
$(".chan.active .toggle-button.toggle-preview.opened").click();
return true;
}
function expand() {
$(".chan.active .toggle-button:not(.opened)").click();
$(".chan.active .toggle-button.toggle-preview:not(.opened)").click();
return true;
}