Correctly append date marker when receiving a message

This commit is contained in:
Pavel Djundik 2017-04-01 11:06:01 +03:00
parent 152da11256
commit 110c0f0c87

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