From bcc92744c21098cefe16ef3827c3e4dc1043db15 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 22 Dec 2018 15:10:31 +0000 Subject: [PATCH] compose fade: Use "topic" internally. --- static/js/compose_fade.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/compose_fade.js b/static/js/compose_fade.js index f902a2ef21..2fba04afb5 100644 --- a/static/js/compose_fade.js +++ b/static/js/compose_fade.js @@ -22,7 +22,7 @@ exports.set_focused_recipient = function (msg_type) { if (focused_recipient.type === "stream") { var stream_name = $('#stream_message_recipient_stream').val(); - focused_recipient.subject = $('#stream_message_recipient_topic').val(); + focused_recipient.topic = $('#stream_message_recipient_topic').val(); focused_recipient.stream = stream_name; var sub = stream_data.get_sub(stream_name); if (sub) { @@ -167,7 +167,7 @@ function want_normal_display() { // the user simply hasn't started typing it yet, but disabling fading here // means the feature doesn't help realms where topics aren't mandatory // (which is most realms as of this writing). - if (focused_recipient.subject === "") { + if (focused_recipient.topic === "") { return true; } }