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.

left_sidebar: Fix click handler selector for all private messages.

Aman Agrawal2d4d4b86eb23
diff --git a/web/src/click_handlers.js b/web/src/click_handlers.js
index 6c0e178b6d1..3dbdd9ff364 100644
--- a/web/src/click_handlers.js
+++ b/web/src/click_handlers.js
@@ -719,7 +719,7 @@ export function initialize() {
"click",
".private_messages_container.zoom-out #private_messages_section_header",
(e) => {
- if (e.target.classList.value === "fa fa-align-right") {
+ if ($(e.target).closest("#show_all_private_messages").length === 1) {
// Let the browser handle the "all direct messages" widget.
return;
}