mirror of https://github.com/zulip/zulip.git
compose: Remove unnecessary check_stream_existence wrapper.
This function had become just an empty shell.
This commit is contained in:
parent
e0954d8811
commit
3f1df50c7b
|
@ -463,14 +463,14 @@ exports.get_invalid_recipient_emails = function () {
|
|||
return invalid_recipients;
|
||||
};
|
||||
|
||||
// *Synchronously* check if a stream exists.
|
||||
// This is deprecated and we hope to remove it.
|
||||
exports.check_stream_existence = function (stream_name, autosubscribe) {
|
||||
function check_stream_for_send(stream_name, autosubscribe) {
|
||||
var result = "error";
|
||||
var request = {stream: stream_name};
|
||||
if (autosubscribe) {
|
||||
request.autosubscribe = true;
|
||||
}
|
||||
// *Synchronously* check if a stream exists.
|
||||
// This is deprecated and we hope to remove it.
|
||||
channel.post({
|
||||
url: "/json/subscriptions/exists",
|
||||
data: request,
|
||||
|
@ -491,13 +491,6 @@ exports.check_stream_existence = function (stream_name, autosubscribe) {
|
|||
},
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
// Checks if a stream exists. If not, displays an error and returns
|
||||
// false.
|
||||
function check_stream_for_send(stream_name, autosubscribe) {
|
||||
var result = exports.check_stream_existence(stream_name, autosubscribe);
|
||||
return result;
|
||||
}
|
||||
|
||||
function validate_stream_message_mentions(stream_name) {
|
||||
|
|
Loading…
Reference in New Issue