compose: Allow DMs to take muted-recipient logic.

This commit is contained in:
Karl Stolley
2025-06-05 11:16:36 -05:00
committed by Tim Abbott
parent d772623d04
commit f1cde90a87
5 changed files with 45 additions and 20 deletions

View File

@@ -614,6 +614,14 @@ export function initialize() {
compose_recipient.update_compose_area_placeholder_text();
});
$("#private_message_recipient").on("focus", () => {
// Once the DM input has been focused, we no longer treat
// the recipient row as muted, as we assume the user is
// doing something that requires keeping attention called
// to the recipient row
compose_recipient.unmute_recipient_row();
});
$("body").on("click", ".formatting_button", function (e) {
const $compose_click_target = $(this);
const $textarea = $compose_click_target.closest("form").find("textarea");