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.

stream-settings: Add missing calls to resize subscribers list.

Sahil Batra788b3fd25167
diff --git a/web/src/stream_edit_subscribers.ts b/web/src/stream_edit_subscribers.ts
index 8899b7ea3b0..909647387ab 100644
--- a/web/src/stream_edit_subscribers.ts
+++ b/web/src/stream_edit_subscribers.ts
@@ -80,6 +80,7 @@ function show_stream_subscription_request_error_result(error_message: string): v
scroll_util
.get_content_element($stream_subscription_req_result_elem)
.html(rendered_error_banner);
+ resize.resize_stream_subscribers_list();
}
function show_stream_subscription_request_success_result({
@@ -115,6 +116,7 @@ function show_stream_subscription_request_success_result({
scroll_util
.get_content_element($stream_subscription_req_result_elem)
.html(rendered_success_banner);
+ resize.resize_stream_subscribers_list();
}
function update_notification_choice_checkbox(added_user_count: number): void {
@@ -153,15 +155,16 @@ export function enable_subscriber_management({
return peer_data.potential_subscribers(stream_id);
}
- const update_notification_choice = function (): void {
+ const pill_update_callback = function (): void {
void stream_edit_update_notification_choice();
+ resize.resize_stream_subscribers_list();
};
pill_widget = add_subscribers_pill.create({
$pill_container,
get_potential_subscribers,
- onPillCreateAction: update_notification_choice,
- onPillRemoveAction: update_notification_choice,
- add_button_pill_update_callback: update_notification_choice,
+ onPillCreateAction: pill_update_callback,
+ onPillRemoveAction: pill_update_callback,
+ add_button_pill_update_callback: pill_update_callback,
get_user_groups: user_groups.get_all_realm_user_groups,
with_add_button: true,
});