FIX: some composer messages were broken (#18392)

This commit is contained in:
Arpit Jalan 2022-09-28 07:21:20 +05:30 committed by GitHub
parent 57caf08e13
commit bc97f3d1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -627,7 +627,7 @@ export default Controller.extend({
}); });
this.appEvents.trigger("composer-messages:create", { this.appEvents.trigger("composer-messages:create", {
extraClass: "custom-body", extraClass: "custom-body",
templateName: "custom-body", templateName: "education",
body, body,
}); });
return false; return false;
@ -776,7 +776,7 @@ export default Controller.extend({
if (body) { if (body) {
this.appEvents.trigger("composer-messages:create", { this.appEvents.trigger("composer-messages:create", {
extraClass: "custom-body", extraClass: "custom-body",
templateName: "custom-body", templateName: "education",
body, body,
}); });
} }
@ -788,7 +788,7 @@ export default Controller.extend({
mentions.forEach((mention) => { mentions.forEach((mention) => {
this.appEvents.trigger("composer-messages:create", { this.appEvents.trigger("composer-messages:create", {
extraClass: "custom-body", extraClass: "custom-body",
templateName: "custom-body", templateName: "education",
body: I18n.t(`composer.cannot_see_mention.${mention.reason}`, { body: I18n.t(`composer.cannot_see_mention.${mention.reason}`, {
username: mention.name, username: mention.name,
}), }),
@ -799,7 +799,7 @@ export default Controller.extend({
hereMention(count) { hereMention(count) {
this.appEvents.trigger("composer-messages:create", { this.appEvents.trigger("composer-messages:create", {
extraClass: "custom-body", extraClass: "custom-body",
templateName: "custom-body", templateName: "education",
body: I18n.t("composer.here_mention", { body: I18n.t("composer.here_mention", {
here: this.siteSettings.here_mention, here: this.siteSettings.here_mention,
count, count,