From 4b2181ffa2ae1e837331e1fc0db275d79ac951ef Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 22 Dec 2018 17:06:31 +0000 Subject: [PATCH] Rename util.get_topic -> get_message_topic(). The specific name will help us when we fully cut over to "topic" on message objects. --- static/js/compose_actions.js | 2 +- static/js/util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/compose_actions.js b/static/js/compose_actions.js index 0cec1dbc55..7ed1eb8cbb 100644 --- a/static/js/compose_actions.js +++ b/static/js/compose_actions.js @@ -307,7 +307,7 @@ exports.respond_to_message = function (opts) { var topic = ''; if (message.type === "stream") { stream = message.stream; - topic = util.get_topic(message); + topic = util.get_message_topic(message); } var pm_recipient = message.reply_to; diff --git a/static/js/util.js b/static/js/util.js index c87a6f057f..5597ac5ca5 100644 --- a/static/js/util.js +++ b/static/js/util.js @@ -307,7 +307,7 @@ exports.set_topic = function (obj, topic) { obj.subject = topic; }; -exports.get_topic = function (obj) { +exports.get_message_topic = function (obj) { return obj.subject; };