From 97ffeb0b7e14b7705230911025d41269985f2f97 Mon Sep 17 00:00:00 2001 From: jai2201 Date: Fri, 15 Jul 2022 06:35:53 +0530 Subject: [PATCH] message-edit: Avoid hardcoding maxlength for message_edit_form. --- static/js/message_edit.js | 1 + static/templates/message_edit_form.hbs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/message_edit.js b/static/js/message_edit.js index 5f35d4dd0d..9ff2e22145 100644 --- a/static/js/message_edit.js +++ b/static/js/message_edit.js @@ -452,6 +452,7 @@ function edit_message($row, raw_content) { notify_new_thread: notify_new_thread_default, notify_old_thread: notify_old_thread_default, giphy_enabled: giphy.is_giphy_enabled(), + max_message_length: page_params.max_message_length, }), ); diff --git a/static/templates/message_edit_form.hbs b/static/templates/message_edit_form.hbs index 29c89ee31b..c2f01df660 100644 --- a/static/templates/message_edit_form.hbs +++ b/static/templates/message_edit_form.hbs @@ -41,7 +41,7 @@
{{> copy_message_button message_id=this.message_id}} - +