message edit: Remove redundant if clause.

`topic_changed` must be true by this point, because
of the earlier return statement.
This commit is contained in:
evykassirer
2023-12-15 11:46:05 -08:00
committed by Tim Abbott
parent 47560d0b8b
commit c86558521f

View File

@@ -869,10 +869,8 @@ export function save_inline_topic_edit($row) {
show_topic_edit_spinner($row);
if (message.locally_echoed) {
if (topic_changed) {
message = echo.edit_locally(message, {new_topic});
$row = message_lists.current.get_row(message_id);
}
end_inline_topic_edit($row);
return;
}