diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-08-06 10:26:50 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-08-06 10:26:50 -0400 |
commit | c9864b403cb6e177bbb5222b14bee656735dd15c (patch) | |
tree | d768f895725aeb6d306f48fce6d05791318ad1d1 /web/react/components/post_list.jsx | |
parent | 48df0037a244302bdb18efbd20015d936c4462e4 (diff) | |
parent | 1361540de43f582ff2cebe9a5c6031aac0b1ded5 (diff) | |
download | chat-c9864b403cb6e177bbb5222b14bee656735dd15c.tar.gz chat-c9864b403cb6e177bbb5222b14bee656735dd15c.tar.bz2 chat-c9864b403cb6e177bbb5222b14bee656735dd15c.zip |
Merge pull request #330 from hmhealey/mm1579
MM-1579 Added a date separator before the first post displayed in a channel
Diffstat (limited to 'web/react/components/post_list.jsx')
-rw-r--r-- | web/react/components/post_list.jsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 90a02e791..bb1b1704c 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -319,7 +319,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 = ( @@ -407,7 +406,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--) { |