Added a date separator before the first post displayed in a channel

Этот коммит содержится в:
hmhealey
2015-08-04 11:30:24 -04:00
родитель 2c46ee8420
Коммит 1361540de4

Просмотреть файл

@@ -311,7 +311,6 @@ module.exports = React.createClass({
} else if (channel.type === 'D') {
var teammate = utils.getDirectTeammate(channel.id)
if (teammate) {
var teammate_name = teammate.nickname.length > 0 ? teammate.nickname : teammate.username;
more_messages = (
@@ -399,7 +398,7 @@ module.exports = React.createClass({
var postCtls = [];
if (posts) {
var previousPostDay = posts[order[order.length-1]] ? utils.getDateForUnixTicks(posts[order[order.length-1]].create_at): new Date();
var previousPostDay = new Date(0);
var currentPostDay;
for (var i = order.length-1; i >= 0; i--) {