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: Reset created stream early when not subscribed to it.

Shubham Padia436244edb2cb
diff --git a/web/src/stream_settings_ui.ts b/web/src/stream_settings_ui.ts
index 759c4dfd59c..f3115a4d954 100644
--- a/web/src/stream_settings_ui.ts
+++ b/web/src/stream_settings_ui.ts
@@ -280,6 +280,12 @@ export function add_sub_to_table(sub: StreamSubscription): void {
$("#stream_settings .stream-creation-confirmation-banner").html(
render_stream_creation_confirmation_banner(context),
);
+ // We don't want to reset the created stream in case the
+ // the current user is subscribed to the created stream
+ // We use the name in stream_create to do some actions on
+ // receiving a subscribe event, and we need the stream name
+ // in stream create for that.
+ stream_create.reset_created_stream();
}
stream_create.reset_current_user_subscribed_to_created_stream();
}