Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
subs: Fix exceptions with Zephyr mirror realms.
Tim Abbott9b645816bf13
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.jsindex ec8e933a5cc..bc67c9e8000 100644--- a/static/js/stream_edit.js+++ b/static/js/stream_edit.js@@ -360,6 +360,10 @@ function show_subscription_settings(sub) {stream_color.set_colorpicker_color(colorpicker, color);stream_ui_updates.update_add_subscriptions_elements(sub);+ if (!sub.render_subscribers) {+ return;+ }+const container = $(`#subscription_overlay .subscription_settings[data-stream-id='${CSS.escape(stream_id,@@ -372,9 +376,6 @@ function show_subscription_settings(sub) {get_text_from_item,});- if (!sub.render_subscribers) {- return;- }if (!stream_data.can_toggle_subscription(sub)) {stream_ui_updates.initialize_cant_subscribe_popover(sub);}diff --git a/static/js/stream_ui_updates.js b/static/js/stream_ui_updates.jsindex 677990be2b4..88654097552 100644--- a/static/js/stream_ui_updates.js+++ b/static/js/stream_ui_updates.js@@ -182,7 +182,7 @@ export function update_add_subscriptions_elements(sub) {return;}- if (page_params.is_guest) {+ if (page_params.is_guest || page_params.realm_is_zephyr_mirror_realm) {// For guest users, we just hide the add_subscribers feature.$(".add_subscribers_container").hide();return;