Merge pull request #1002 from thelounge/xpaw/append-date-marker

Correctly append date marker when receiving a message
This commit is contained in:
Jérémie Astori 2017-04-01 12:59:24 -04:00 committed by GitHub
commit 44f71bb93e

View File

@ -432,7 +432,7 @@ $(function() {
}
if (prevMsgTime.toDateString() !== msgTime.toDateString()) {
prevMsg.append(templates.date_marker({msgDate: msgTime}));
prevMsg.after(templates.date_marker({msgDate: msgTime}));
}
// Add message to the container