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: Check if overlay is opened when removing stream.

Sahil Batra6efa6b354c43
diff --git a/web/src/stream_settings_ui.js b/web/src/stream_settings_ui.js
index 02b5f19ea8e..baf42768409 100644
--- a/web/src/stream_settings_ui.js
+++ b/web/src/stream_settings_ui.js
@@ -256,6 +256,10 @@ export function add_sub_to_table(sub) {
}
export function remove_stream(stream_id) {
+ if (!overlays.streams_open()) {
+ return;
+ }
+
// It is possible that row is empty when we deactivate a
// stream, but we let jQuery silently handle that.
const $row = stream_ui_updates.row_for_stream_id(stream_id);