mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
feature_flags: Remove propagate_topic_edits.
This flag has been set to true since 2013.
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
// The features below have all settled into their final states and can
|
// The features below have all settled into their final states and can
|
||||||
// be removed when we get a chance
|
// be removed when we get a chance
|
||||||
exports.propagate_topic_edits = true;
|
|
||||||
exports.clicking_notification_causes_narrow = true;
|
exports.clicking_notification_causes_narrow = true;
|
||||||
exports.reminders_in_message_action_menu = false;
|
exports.reminders_in_message_action_menu = false;
|
||||||
|
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ function edit_message(row, raw_content) {
|
|||||||
edit_obj.scrolled_by = scroll_by;
|
edit_obj.scrolled_by = scroll_by;
|
||||||
message_viewport.scrollTop(message_viewport.scrollTop() + scroll_by);
|
message_viewport.scrollTop(message_viewport.scrollTop() + scroll_by);
|
||||||
|
|
||||||
if (feature_flags.propagate_topic_edits && !message.locally_echoed) {
|
if (!message.locally_echoed) {
|
||||||
const original_topic = message.topic;
|
const original_topic = message.topic;
|
||||||
message_edit_topic.keyup(function () {
|
message_edit_topic.keyup(function () {
|
||||||
const new_topic = message_edit_topic.val();
|
const new_topic = message_edit_topic.val();
|
||||||
@@ -496,10 +496,8 @@ exports.save = function (row, from_topic_edited_only) {
|
|||||||
const request = {message_id: message.id};
|
const request = {message_id: message.id};
|
||||||
if (topic_changed) {
|
if (topic_changed) {
|
||||||
request.topic = 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";
|
const selected_topic_propagation = row.find("select.message_edit_topic_propagate").val() || "change_later";
|
||||||
request.propagate_mode = selected_topic_propagation;
|
request.propagate_mode = selected_topic_propagation;
|
||||||
}
|
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user