reenable chat modals based on user setting

This commit is contained in:
Barış Soner Uşaklı 2023-05-16 10:48:47 -04:00
parent fe8c12f1b4
commit 67e7787c87
8 changed files with 69 additions and 5 deletions

View file

@ -36,8 +36,8 @@ $(document).ready(function () {
});

hooks.on('filter:chat.openChat', function (hookData) {
// disables chat modals & goes straight to chat page
hookData.modal = false;
// disables chat modals & goes straight to chat page based on user setting
hookData.modal = config.theme.chatModals;
return hookData;
});
});