Correctly append date marker when receiving a message
This commit is contained in:
parent
152da11256
commit
110c0f0c87
@ -432,7 +432,7 @@ $(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (prevMsgTime.toDateString() !== msgTime.toDateString()) {
|
if (prevMsgTime.toDateString() !== msgTime.toDateString()) {
|
||||||
prevMsg.append(templates.date_marker({msgDate: msgTime}));
|
prevMsg.after(templates.date_marker({msgDate: msgTime}));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add message to the container
|
// Add message to the container
|
||||||
|
Loading…
Reference in New Issue
Block a user