subject -> topic: Sweep "message.subject" in frontend.

These were the last remaining files.  After this, only
util.js has a non-email-related use of "subject".
This commit is contained in:
Steve Howell
2018-12-23 15:01:30 +00:00
committed by Tim Abbott
parent 7e17b8a392
commit 1ad30c6858
12 changed files with 27 additions and 21 deletions

View File

@@ -128,14 +128,14 @@ exports.edit_locally = function edit_locally(message, raw_content, new_topic) {
if (new_topic !== undefined) {
topic_data.remove_message({
stream_id: message.stream_id,
topic_name: message.subject,
topic_name: util.get_message_topic(message),
});
util.set_message_topic(message, new_topic);
topic_data.add_message({
stream_id: message.stream_id,
topic_name: message.subject,
topic_name: util.get_message_topic(message),
message_id: message.id,
});
}