Skip to content

A platform for community discussion. Free, open, simple.

FIX: Hide chat message header with new argument (#24346)

Jordan Vidrine70b72ee8937d
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/modal/new-message.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/modal/new-message.gjs
index 3bce3f92a37..78c95cf881e 100644
--- a/plugins/chat/assets/javascripts/discourse/components/chat/modal/new-message.gjs
+++ b/plugins/chat/assets/javascripts/discourse/components/chat/modal/new-message.gjs
@@ -20,6 +20,7 @@ export default class ChatModalNewMessage extends Component {
class="chat-modal-new-message"
@title="chat.new_message_modal.title"
@inline={{@inline}}
+ @hideHeader={{true}}
>
<MessageCreator @onClose={{@closeModal}} @channel={{@model}} />
</DModal>
diff --git a/plugins/chat/assets/stylesheets/common/chat-modal-new-message.scss b/plugins/chat/assets/stylesheets/common/chat-modal-new-message.scss
index 18c982e2c1b..03a2c1717fd 100644
--- a/plugins/chat/assets/stylesheets/common/chat-modal-new-message.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-modal-new-message.scss
@@ -8,10 +8,6 @@
padding: 0;
}
- .modal-header {
- display: none;
- }
-
.modal-inner-container {
width: var(--modal-max-width);
box-shadow: var(--shadow-dropdown);