subscription: Fix error in being re-subscribed to private stream.

Fixes #9023
This commit is contained in:
YJDave
2018-04-08 10:36:42 +05:30
committed by Tim Abbott
parent 24f51739eb
commit ed70a92ed3
2 changed files with 15 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ exports.hide_sub_settings = function (sub) {
};
exports.show_sub_settings = function (sub) {
if (!exports.is_sub_settings_active(sub)) {
return;
}
var $settings = $(".subscription_settings[data-stream-id='" + sub.stream_id + "']");
if ($settings.find(".email-address").val().length === 0) {
// Rerender stream email address, if not.