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:
Joelute 2023-04-23 16:36:53 -04:00 committed by Tim Abbott
parent e2c4033d75
commit a840cd88ab
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}