mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +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) {
|
||||
let hasDateSeparator;
|
||||
if (prev instanceof SimpleTile) {
|
||||
if (prev && prev._date) {
|
||||
if (prev && prev._date && this._date) {
|
||||
hasDateSeparator = prev._date.getFullYear() !== this._date.getFullYear() ||
|
||||
prev._date.getMonth() !== this._date.getMonth() ||
|
||||
prev._date.getDate() !== this._date.getDate();
|
||||
|
Loading…
Reference in New Issue
Block a user