compose fade: Use "topic" internally.

This commit is contained in:
Steve Howell 2018-12-22 15:10:31 +00:00 committed by Tim Abbott
parent 773e85309c
commit bcc92744c2
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}