Node.js based forum software built for the modern web
fix: scope chat modal delete-room handler to room controls (#14714)
palmoni5a2899e2d1f62
diff --git a/public/src/modules/chat.js b/public/src/modules/chat.jsindex 0b2e10eb7a..0a80c883e6 100644--- a/public/src/modules/chat.js+++ b/public/src/modules/chat.js@@ -441,7 +441,7 @@ define('chat', [Chats.addActionHandlers(chatModal.find('[component="chat/message/window"]'), roomId);Chats.addRenameHandler(roomId, chatModal.find('[data-action="rename"]'));Chats.addLeaveHandler(roomId, chatModal.find('[data-action="leave"]'));- Chats.addDeleteHandler(roomId, chatModal.find('[data-action="delete"]'));+ Chats.addDeleteHandler(roomId, chatModal.find('[component="chat/controls"] [data-action="delete"]'));Chats.addSendHandlers(roomId, chatModal.find('.chat-input'), chatModal.find('[data-action="send"]'));Chats.addManageHandler(roomId, chatModal.find('[data-action="manage"]'));