From bc97f3d1c18a8f37803ef5db77cad14c12e56896 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 28 Sep 2022 07:21:20 +0530 Subject: [PATCH] FIX: some composer messages were broken (#18392) --- .../javascripts/discourse/app/controllers/composer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/app/controllers/composer.js b/app/assets/javascripts/discourse/app/controllers/composer.js index f6907fdb44f..ac4bf19037d 100644 --- a/app/assets/javascripts/discourse/app/controllers/composer.js +++ b/app/assets/javascripts/discourse/app/controllers/composer.js @@ -627,7 +627,7 @@ export default Controller.extend({ }); this.appEvents.trigger("composer-messages:create", { extraClass: "custom-body", - templateName: "custom-body", + templateName: "education", body, }); return false; @@ -776,7 +776,7 @@ export default Controller.extend({ if (body) { this.appEvents.trigger("composer-messages:create", { extraClass: "custom-body", - templateName: "custom-body", + templateName: "education", body, }); } @@ -788,7 +788,7 @@ export default Controller.extend({ mentions.forEach((mention) => { this.appEvents.trigger("composer-messages:create", { extraClass: "custom-body", - templateName: "custom-body", + templateName: "education", body: I18n.t(`composer.cannot_see_mention.${mention.reason}`, { username: mention.name, }), @@ -799,7 +799,7 @@ export default Controller.extend({ hereMention(count) { this.appEvents.trigger("composer-messages:create", { extraClass: "custom-body", - templateName: "custom-body", + templateName: "education", body: I18n.t("composer.here_mention", { here: this.siteSettings.here_mention, count,