mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
click_handlers: Allow messages being edited/viewed to be clicked.
If a user is editing a message or viewing the message source, they'll notice that clicking on the messsage doesn't move the blue box to it while the keyboard works just fine. We want to allow the message to be selected while not triggering the reply function.
This commit is contained in:
@@ -177,13 +177,13 @@ export function initialize() {
|
||||
const $row = $(this).closest(".message_row");
|
||||
const id = rows.id($row);
|
||||
|
||||
message_lists.current.select_id(id);
|
||||
|
||||
if (message_edit.is_editing(id)) {
|
||||
// Clicks on a message being edited shouldn't trigger a reply.
|
||||
return;
|
||||
}
|
||||
|
||||
message_lists.current.select_id(id);
|
||||
|
||||
if (page_params.is_spectator) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user