stream_list: Don't toggle channel search on header click.

Soon we'll make multiple channel sections and have them toggle
open or closed when clicking the header.
This commit is contained in:
Evy Kassirer
2025-06-20 19:40:37 -07:00
committed by Tim Abbott
parent 10c13bf5e1
commit 0ba4c9cb6c

View File

@@ -1051,19 +1051,6 @@ export function set_event_handlers({
});
});
$("#streams_header")
.expectOne()
.on("click", (e) => {
e.preventDefault();
if (
e.target.id === "streams_inline_icon" ||
$(e.target).parent().hasClass("input-close-filter-button")
) {
return;
}
toggle_filter_displayed(e);
});
function toggle_pm_header_icon(): void {
if (pm_list.is_private_messages_collapsed()) {
return;