Update the message group fading to be message_container aware

update_rendered_message_groups needs to use the message not the
message_container when testing to see if the fade states need to be
updated.

(imported from commit b1c3baba07169a369d827c89afdc3c406ada0b79)
This commit is contained in:
Jason Michalski
2014-03-18 16:13:04 -04:00
parent 28245ce4e4
commit 7bc98d1634

View File

@@ -229,7 +229,7 @@ exports.update_rendered_message_groups = function (message_groups, get_element)
// the other code takes advantage of blocks beneath recipient bars.
_.each(message_groups, function (message_group) {
var elt = get_element(message_group);
var first_message = message_group.message_containers[0];
var first_message = message_group.message_containers[0].msg;
var should_fade = !fade_heuristic(focused_recipient, first_message);
change_fade_state(elt, should_fade);
});