mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 00:53:56 +00:00
Rename util.set_topic -> set_message_topic().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user