mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
stream settings: Update subscription-btn display instant.
If user unsubscribe from private stream, then immediately remove subscription option from settings.
This commit is contained in:
@@ -246,6 +246,12 @@ exports.update_settings_for_unsubscribed = function (sub) {
|
||||
stream_edit.rerender_subscribers_list(sub);
|
||||
}
|
||||
|
||||
// If user unsubscribed from private stream then user can not subscribe to
|
||||
// stream without invitation. So hide subscribe button.
|
||||
stream_data.update_calculated_fields(sub);
|
||||
if (!sub.should_display_subscription_button) {
|
||||
settings_button.hide();
|
||||
}
|
||||
row_for_stream_id(subs.stream_id).attr("data-temp-view", true);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user