show date marker at start of channels
This commit is contained in:
parent
15cdf8033b
commit
265af195da
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class MessageStore extends Store {
|
|||
if (previous && (message._createdAtDate.getTime() - previous._createdAtDate.getTime()) <= 100 * 1000 && message.author_id === previous.author_id) {
|
||||
message._clumped = true;
|
||||
}
|
||||
if (previous && (previous._createdAtDateString !== message._createdAtDateString)) {
|
||||
if (!previous || (previous._createdAtDateString !== message._createdAtDateString)) {
|
||||
message._aboveDateMarker = new Intl.DateTimeFormat(getItem("ui:locale"), { month: "long", day: "numeric", year: "numeric" }).format(message._createdAtDate);
|
||||
}
|
||||
return message;
|
||||
|
|
Loading…
Reference in a new issue