From eec9a9babbab8742710d9bf2c92dda37360242df Mon Sep 17 00:00:00 2001 From: Aditya Bansal Date: Wed, 28 Jun 2017 16:10:53 +0530 Subject: [PATCH] compose.js: Export validate_stream_message_address_info(). --- static/js/compose.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/compose.js b/static/js/compose.js index 5f045e226c..094ddd8438 100644 --- a/static/js/compose.js +++ b/static/js/compose.js @@ -508,7 +508,7 @@ function validate_stream_message_mentions(stream_name) { return true; } -function validate_stream_message_address_info(stream_name) { +exports.validate_stream_message_address_info = function (stream_name) { var response; if (!stream_data.is_subscribed(stream_name)) { @@ -532,7 +532,7 @@ function validate_stream_message_address_info(stream_name) { } return true; -} +}; function validate_stream_message() { var stream_name = compose_state.stream_name(); @@ -549,7 +549,7 @@ function validate_stream_message() { } } - if (!validate_stream_message_address_info(stream_name) || + if (!exports.validate_stream_message_address_info(stream_name) || !validate_stream_message_mentions(stream_name)) { return false; }