mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
util: Replace util.set_message_topic().
Replace `util.set_message_topic(message, topic)` with `message.topic = topic`. Fixes #13931
This commit is contained in:
committed by
showell
parent
efda2684ea
commit
a05f633fc1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user