mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
don't assume the own tile has a date
This commit is contained in:
parent
9c467d9149
commit
aa77c557a6
@ -46,7 +46,7 @@ export class SimpleTile extends ViewModel {
|
|||||||
_updateDateSeparator(prev) {
|
_updateDateSeparator(prev) {
|
||||||
let hasDateSeparator;
|
let hasDateSeparator;
|
||||||
if (prev instanceof SimpleTile) {
|
if (prev instanceof SimpleTile) {
|
||||||
if (prev && prev._date) {
|
if (prev && prev._date && this._date) {
|
||||||
hasDateSeparator = prev._date.getFullYear() !== this._date.getFullYear() ||
|
hasDateSeparator = prev._date.getFullYear() !== this._date.getFullYear() ||
|
||||||
prev._date.getMonth() !== this._date.getMonth() ||
|
prev._date.getMonth() !== this._date.getMonth() ||
|
||||||
prev._date.getDate() !== this._date.getDate();
|
prev._date.getDate() !== this._date.getDate();
|
||||||
|
Loading…
Reference in New Issue
Block a user