util: Replace util.set_message_topic().

Replace `util.set_message_topic(message, topic)` with `message.topic =
topic`.

Fixes #13931
This commit is contained in:
shubhamgupta2956
2020-02-19 07:14:17 +05:30
committed by showell
parent efda2684ea
commit a05f633fc1
7 changed files with 7 additions and 13 deletions

View File

@@ -1,4 +1,3 @@
const util = require("./util");
const render_message_edit_form = require('../templates/message_edit_form.hbs');
const render_message_edit_history = require('../templates/message_edit_history.hbs');
const render_topic_edit_form = require('../templates/topic_edit_form.hbs');
@@ -496,7 +495,7 @@ exports.save = function (row, from_topic_edited_only) {
const request = {message_id: message.id};
if (topic_changed) {
util.set_message_topic(request, new_topic);
request.topic = new_topic;
if (feature_flags.propagate_topic_edits) {
const selected_topic_propagation = row.find("select.message_edit_topic_propagate").val() || "change_later";
request.propagate_mode = selected_topic_propagation;