mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 01:24:02 +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,
|
queue_id: page_params.queue_id,
|
||||||
stream: '',
|
stream: '',
|
||||||
};
|
};
|
||||||
util.set_topic(message, '');
|
util.set_message_topic(message, '');
|
||||||
|
|
||||||
if (message.type === "private") {
|
if (message.type === "private") {
|
||||||
// TODO: this should be collapsed with the code in composebox_typeahead.js
|
// TODO: this should be collapsed with the code in composebox_typeahead.js
|
||||||
@@ -172,7 +172,7 @@ function create_message_object() {
|
|||||||
if (sub) {
|
if (sub) {
|
||||||
message.stream_id = sub.stream_id;
|
message.stream_id = sub.stream_id;
|
||||||
}
|
}
|
||||||
util.set_topic(message, topic);
|
util.set_message_topic(message, topic);
|
||||||
}
|
}
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ exports.get_reload_topic = function (obj) {
|
|||||||
return obj.topic || obj.subject || '';
|
return obj.topic || obj.subject || '';
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.set_topic = function (obj, topic) {
|
exports.set_message_topic = function (obj, topic) {
|
||||||
obj.subject = topic;
|
obj.subject = topic;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user