mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
click_handlers: Only select messages on click by a spectator.
When a message clicked, don't show login modal or open compose for a spectator.
This commit is contained in:
parent
450e4bbb56
commit
c3b6b48fa2
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user