From caef0a56d1948b94e9775093420850170b17f824 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 7 Mar 2019 11:27:50 +0530 Subject: [PATCH] FEATURE: create a new message via URL without specifying user or group --- app/assets/javascripts/discourse/routes/new-message.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/routes/new-message.js.es6 b/app/assets/javascripts/discourse/routes/new-message.js.es6 index abdf17e24bd..70691518829 100644 --- a/app/assets/javascripts/discourse/routes/new-message.js.es6 +++ b/app/assets/javascripts/discourse/routes/new-message.js.es6 @@ -48,6 +48,8 @@ export default Discourse.Route.extend({ } }) .catch(() => bootbox.alert(I18n.t("generic_error"))); + } else { + e.send("createNewMessageViaParams", null, params.title, params.body); } }); } else {