message_edit: Rename start_inline_topic_edit.

This function should be named similarly to the well-named
end_inline_topic_edit; previously the main hint that this was the
inline code path was just that the recipient_row was the parameter.
This commit is contained in:
Tim Abbott 2021-03-29 09:39:20 -07:00
parent c70f926dc1
commit a092e96bff
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ export function initialize() {
});
$("body").on("click", ".always_visible_topic_edit,.on_hover_topic_edit", function (e) {
const recipient_row = $(this).closest(".recipient_row");
message_edit.start_topic_edit(recipient_row);
message_edit.start_inline_topic_edit(recipient_row);
e.stopPropagation();
popovers.hide_all();
});

View File

@ -556,7 +556,7 @@ export function start(row, edit_box_open_callback) {
});
}
export function start_topic_edit(recipient_row) {
export function start_inline_topic_edit(recipient_row) {
const form = $(render_topic_edit_form());
current_msg_list.show_edit_topic_on_recipient_row(recipient_row, form);
form.on("keydown", handle_inline_topic_edit_keydown);