mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Don't repeat date header if message date is same as previous.
This primarily works to make sure that new queued messages don’t end up with redundant date headers on them.
This commit is contained in:
committed by
Tim Abbott
parent
0b33be50f3
commit
80ad28bab5
@@ -89,7 +89,7 @@ function populate_group_from_message_container(group, message_container) {
|
||||
var time = new XDate(message_container.msg.timestamp * 1000);
|
||||
var date_element = timerender.render_date(time)[0];
|
||||
|
||||
if (!message_container.print_date) {
|
||||
if (!message_container.show_date) {
|
||||
date_element.className = "hide-date";
|
||||
}
|
||||
|
||||
@@ -166,10 +166,6 @@ MessageListView.prototype = {
|
||||
message_container.include_recipient = false;
|
||||
message_container.include_footer = false;
|
||||
|
||||
if (!same_day(prev, message_container)) {
|
||||
message_container.print_date = true;
|
||||
}
|
||||
|
||||
if (same_recipient(prev, message_container) && self.collapse_messages &&
|
||||
prev.msg.historical === message_container.msg.historical &&
|
||||
same_day(prev, message_container)) {
|
||||
|
||||
Reference in New Issue
Block a user