compose.js: Export validate_stream_message_address_info().

This commit is contained in:
Aditya Bansal 2017-06-28 16:10:53 +05:30 committed by showell
parent 63401833b4
commit eec9a9babb
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}