diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 4d52ee3d42..503d069e48 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -259,12 +259,15 @@ module.exports = React.createClass({ continuation = true; } - // do we need a date separator since the last event? + // local echoes have a fake date, which could even be yesterday. Treat them + // as 'today' for the date separators. var ts1 = mxEv.getTs(); - if ((prevEvent == null && !this.props.suppressFirstDateSeparator) || - (prevEvent != null && - new Date(prevEvent.getTs()).toDateString() - !== new Date(ts1).toDateString())) { + if (mxEv.status) { + ts1 = new Date(); + } + + // do we need a date separator since the last event? + if (this._wantsDateSeparator(prevEvent, ts1)) { var dateSeparator =