mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
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:
@@ -869,10 +869,8 @@ export function save_inline_topic_edit($row) {
|
|||||||
show_topic_edit_spinner($row);
|
show_topic_edit_spinner($row);
|
||||||
|
|
||||||
if (message.locally_echoed) {
|
if (message.locally_echoed) {
|
||||||
if (topic_changed) {
|
message = echo.edit_locally(message, {new_topic});
|
||||||
message = echo.edit_locally(message, {new_topic});
|
$row = message_lists.current.get_row(message_id);
|
||||||
$row = message_lists.current.get_row(message_id);
|
|
||||||
}
|
|
||||||
end_inline_topic_edit($row);
|
end_inline_topic_edit($row);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user