Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
click_handlers: Only select messages on click by a spectator.
Aman Agrawalc3b6b48fa2b4
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.jsindex 36c2fd3e9b2..801dc9490ef 100644--- a/static/js/click_handlers.js+++ b/static/js/click_handlers.js@@ -28,6 +28,7 @@ import * as muted_topics_ui from "./muted_topics_ui";import * as narrow from "./narrow";import * as notifications from "./notifications";import * as overlays from "./overlays";+import {page_params} from "./page_params";import * as popovers from "./popovers";import * as reactions from "./reactions";import * as recent_topics_ui from "./recent_topics_ui";@@ -173,6 +174,10 @@ export function initialize() {}message_lists.current.select_id(id);++ if (page_params.is_spectator) {+ return;+ }compose_actions.respond_to_message({trigger: "message click"});e.stopPropagation();popovers.hide_all();