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.

click_handlers: Don't select message on clicking message_controls.

Aman Agrawalda11141eae0f
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index ffe8036dff1..0768fc0f4b6 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -137,6 +137,11 @@ export function initialize() {
return true;
}
+ // Don't select message on clicking message control buttons.
+ if (target.parents(".message_controls").length > 0) {
+ return true;
+ }
+
return false;
}