Remove message param from compose.snapshot_message().

This commit is contained in:
Steve Howell
2017-02-24 08:03:20 -08:00
committed by Tim Abbott
parent 1daa4e3279
commit 49496cee58

View File

@@ -347,16 +347,13 @@ function create_message_object() {
return message;
}
exports.snapshot_message = function (message) {
exports.snapshot_message = function () {
if (!exports.composing() || (exports.message_content() === "")) {
// If you aren't in the middle of composing the body of a
// message, don't try to snapshot.
return;
}
if (message !== undefined) {
return _.extend({}, message);
}
// Save what we can.
return create_message_object();
};