mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
message_list: Fix missing date boundaries for newly sent messages.
When receiving the first new message of a new day, we were previously
not showing a date separator line before the message.
Fixes a regression introduced
in 00c7f7d42f.
This commit is contained in:
@@ -368,6 +368,11 @@ MessageListView.prototype = {
|
|||||||
// Clear the date if it is the same as the last group
|
// Clear the date if it is the same as the last group
|
||||||
delete second_group.show_date;
|
delete second_group.show_date;
|
||||||
delete second_group.show_date_separator;
|
delete second_group.show_date_separator;
|
||||||
|
} else {
|
||||||
|
// If we just sent the first message on a new day
|
||||||
|
// in a narrow, make sure we render a date separator.
|
||||||
|
add_display_time(second_group, first_msg_container,
|
||||||
|
last_msg_container);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
message_actions.append_groups = new_message_groups;
|
message_actions.append_groups = new_message_groups;
|
||||||
|
|||||||
Reference in New Issue
Block a user