Skip to content

Commit

Permalink
Update chat.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Voiture-0 authored Nov 9, 2024
1 parent d7b924a commit 622fbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class Chat {
if (isKeyCode(e, KEYCODES.ESC)) {
const activeView = this.getActiveWindow().scrollplugin;
// If any menus are open, close them first
if (this.getActiveMenu() !== undefined) ChatMenu.closeMenus(this);
if (this.getActiveMenu()) ChatMenu.closeMenus(this);
// If the active window is scrolled up (not pinned), scroll to bottom
else if (!activeView.pinned) activeView.scrollBottom();
}
Expand Down

0 comments on commit 622fbd8

Please sign in to comment.