Don't fade all messages when you narrow to all PMs with the compose box open.

(imported from commit 4041d28988544733243aa3f2494aca9247acd324)
This commit is contained in:
Jessica McKellar
2013-07-18 15:23:20 -04:00
parent 1d01a7db55
commit b898db424e

View File

@@ -115,7 +115,8 @@ exports.update_faded_messages = function () {
return;
}
if (focused_recipient.type === "stream" && focused_recipient.subject === "") {
if ((focused_recipient.type === "stream" && focused_recipient.subject === "") ||
(focused_recipient.type === "private" && focused_recipient.reply_to === "")) {
exports.unfade_messages();
return;
}