mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user