Merge pull request #3978 from thelounge/xpaw/fix-date-marker
Fix date marker not displaying sometimes
This commit is contained in:
commit
fae9d75d6d
@ -204,7 +204,14 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Date(previousMessage.time).getDay() !== new Date(message.time).getDay();
|
const oldDate = new Date(previousMessage.time);
|
||||||
|
const newDate = new Date(message.time);
|
||||||
|
|
||||||
|
return (
|
||||||
|
oldDate.getDate() !== newDate.getDate() ||
|
||||||
|
oldDate.getMonth() !== newDate.getMonth() ||
|
||||||
|
oldDate.getFullYear() !== newDate.getFullYear()
|
||||||
|
);
|
||||||
},
|
},
|
||||||
shouldDisplayUnreadMarker(id) {
|
shouldDisplayUnreadMarker(id) {
|
||||||
if (!unreadMarkerShown && id > this.channel.firstUnread) {
|
if (!unreadMarkerShown && id > this.channel.firstUnread) {
|
||||||
|
Loading…
Reference in New Issue
Block a user