Node.js based forum software built for the modern web
on chat leave close the modal
barisusakli1301fb1f340d
diff --git a/public/src/client/chats.js b/public/src/client/chats.jsindex c42a8e9330..582c578f65 100644--- a/public/src/client/chats.js+++ b/public/src/client/chats.js@@ -282,11 +282,17 @@ define('forum/chats', [if (err) {return app.alertError(err.message);}- if (parseInt(roomId, 10) === ajaxify.data.roomId) {+ if (parseInt(roomId, 10) === parseInt(ajaxify.data.roomId, 10)) {ajaxify.go('user/' + ajaxify.data.userslug + '/chats');} else {el.remove();}+ require(['chat'], function (chat) {+ var modal = chat.getModal(roomId);+ if (modal.length) {+ chat.close(modal);+ }+ });});};