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.

compose_banner: Remove redundant `.remove()` in subscribe error.

Aman Agrawal440df6611642
diff --git a/web/src/compose_banner.ts b/web/src/compose_banner.ts
index 268b547b4a4..3713a9b661d 100644
--- a/web/src/compose_banner.ts
+++ b/web/src/compose_banner.ts
@@ -249,9 +249,6 @@ export function show_stream_not_subscribed_error(
sub: StreamSubscription,
banner_text: string,
): void {
- // Remove any existing banners with this warning.
- $(`#compose_banners .${CSS.escape(CLASSNAMES.user_not_subscribed)}`).remove();
-
const new_row_html = render_compose_banner({
banner_type: ERROR,
banner_text,