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_popover: Remove dead unsub code.

Tim Abbotte17e231b2abb
diff --git a/web/src/stream_popover.js b/web/src/stream_popover.js
index 7d29e322dfc..b6c19f63337 100644
--- a/web/src/stream_popover.js
+++ b/web/src/stream_popover.js
@@ -168,10 +168,7 @@ function build_stream_popover(opts) {
});
// Unsubscribe
- $popper.on("click", ".popover_sub_unsub_button", function (e) {
- $(this).toggleClass("unsub");
- $(this).closest(".popover").fadeOut(500).delay(500).remove();
-
+ $popper.on("click", ".popover_sub_unsub_button", (e) => {
const sub = stream_popover_sub(e);
hide_stream_popover();
stream_settings_components.sub_or_unsub(sub);