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:
Tim Abbott
2017-06-05 09:13:02 -07:00
parent edfe595bf2
commit 47465ea51a

View File

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