Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

streams: Enable live update of stream_post_policy in subscription_type text.

sahil8395f63d6b7f1c4
diff --git a/static/js/stream_ui_updates.js b/static/js/stream_ui_updates.js
index a790a5bd27b..72e8755837c 100644
--- a/static/js/stream_ui_updates.js
+++ b/static/js/stream_ui_updates.js
@@ -143,7 +143,11 @@ exports.update_stream_privacy_type_icon = function (sub) {
exports.update_stream_subscription_type_text = function (sub) {
const stream_settings = stream_edit.settings_for_sub(sub);
- const html = render_subscription_type(sub);
+ const template_data = {
+ ...sub,
+ stream_post_policy_values: stream_data.stream_post_policy_values,
+ };
+ const html = render_subscription_type(template_data);
if (stream_edit.is_sub_settings_active(sub)) {
stream_settings.find('.subscription-type-text').expectOne().html(html);
}