compose: Rename functions to reflect attention level.

This commit is contained in:
Karl Stolley
2025-06-20 12:27:58 -05:00
committed by Tim Abbott
parent ac509eaa66
commit e19b815eaf
5 changed files with 24 additions and 22 deletions

View File

@@ -599,10 +599,10 @@ export function initialize() {
compose_recipient.update_topic_displayed_text($input.val(), true);
compose_recipient.update_compose_area_placeholder_text();
// Once the topic 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
// the recipient row as low attention, as we assume the user
// has done something that requires keeping attention called
// to the recipient row
compose_recipient.unmute_recipient_row();
compose_recipient.set_high_attention_recipient_row();
$("input#stream_message_recipient_topic").one("blur", () => {
compose_recipient.update_topic_displayed_text($input.val());
@@ -616,10 +616,10 @@ export function initialize() {
$("#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
// the recipient row as low attention, as we assume the user
// has done something that requires keeping attention called
// to the recipient row
compose_recipient.unmute_recipient_row();
compose_recipient.set_high_attention_recipient_row();
});
$("body").on("click", ".formatting_button", function (e) {