chat: New hide method to completely hide chat

This commit is contained in:
Richard Hansen 2021-12-06 17:41:00 -05:00
parent 8ae5f25075
commit 1cbba4ea3a
2 changed files with 10 additions and 4 deletions

View file

@ -100,6 +100,14 @@ exports.chat = (() => {
$('#chatbox').removeClass('visible');
}
},
minimize() {
if ($('#options-stickychat').prop('checked')) this.reduce();
this.reduce();
},
hide() {
this.minimize();
$('#chaticon').hide();
},
scrollDown(force) {
if ($('#chatbox').hasClass('visible')) {
if (force || !this.lastMessage || !this.lastMessage.position() ||