Rename util.set_topic -> set_message_topic().

This commit is contained in:
Steve Howell
2018-12-22 17:37:48 +00:00
committed by Tim Abbott
parent 4b2181ffa2
commit 4e0969bb49
2 changed files with 3 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ function create_message_object() {
queue_id: page_params.queue_id,
stream: '',
};
util.set_topic(message, '');
util.set_message_topic(message, '');
if (message.type === "private") {
// TODO: this should be collapsed with the code in composebox_typeahead.js
@@ -172,7 +172,7 @@ function create_message_object() {
if (sub) {
message.stream_id = sub.stream_id;
}
util.set_topic(message, topic);
util.set_message_topic(message, topic);
}
return message;
}

View File

@@ -303,7 +303,7 @@ exports.get_reload_topic = function (obj) {
return obj.topic || obj.subject || '';
};
exports.set_topic = function (obj, topic) {
exports.set_message_topic = function (obj, topic) {
obj.subject = topic;
};