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.

subs: Do not remove stream row when unsubscribing using hotkey.

sahil8390fb4045807e2
diff --git a/static/js/subs.js b/static/js/subs.js
index 4a402a52af6..37055b4fa66 100644
--- a/static/js/subs.js
+++ b/static/js/subs.js
@@ -785,14 +785,9 @@ export function switch_rows(event) {
export function keyboard_sub() {
const active_data = get_active_data();
- const stream_filter_tab = $(active_data.tabs[0]).text();
const row_data = get_row_data(active_data.row);
if (row_data) {
sub_or_unsub(row_data.object);
- if (row_data.object.subscribed && stream_filter_tab === "Subscribed") {
- active_data.row.addClass("notdisplayed");
- active_data.row.removeClass("active");
- }
}
}