mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
compose: Remove obsolete references to replying_to_message.
The `replying_to_message` field was used in some early versions of compose fade, but it has no more use in the current code. The drafts implementation didn't really make any sense, anyway, as we were claiming to reply to the same message we were drafting.
This commit is contained in:
@@ -328,7 +328,6 @@ exports.respond_to_message = function (opts) {
|
|||||||
}
|
}
|
||||||
exports.start(msg_type, {stream: stream, subject: topic,
|
exports.start(msg_type, {stream: stream, subject: topic,
|
||||||
private_message_recipient: pm_recipient,
|
private_message_recipient: pm_recipient,
|
||||||
replying_to_message: message,
|
|
||||||
trigger: opts.trigger});
|
trigger: opts.trigger});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -126,14 +126,6 @@ exports.restore_draft = function (draft_id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var draft_copy = _.extend({}, draft);
|
var draft_copy = _.extend({}, draft);
|
||||||
if (draft_copy.type === "stream" &&
|
|
||||||
draft_copy.stream.length > 0 &&
|
|
||||||
draft_copy.subject.length > 0 ||
|
|
||||||
draft_copy.type === "private" &&
|
|
||||||
draft_copy.reply_to.length > 0) {
|
|
||||||
draft_copy = _.extend({replying_to_message: draft_copy},
|
|
||||||
draft_copy);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (draft.type === "stream") {
|
if (draft.type === "stream") {
|
||||||
if (draft.stream !== "") {
|
if (draft.stream !== "") {
|
||||||
|
|||||||
Reference in New Issue
Block a user