mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
fix lint warnings
This commit is contained in:
parent
efa45cade6
commit
195142c249
@ -15,7 +15,6 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
import {SimpleTile} from "./SimpleTile.js";
|
||||
import {TileShape} from "./ITile";
|
||||
import {ReactionsViewModel} from "../ReactionsViewModel.js";
|
||||
import {getIdentifierColorNumber, avatarInitials, getAvatarHttpUrl} from "../../../../avatar";
|
||||
|
||||
|
@ -56,7 +56,7 @@ export class DateTile extends ViewModel implements ITile<BaseEventEntry> {
|
||||
|
||||
get machineReadableDate(): string {
|
||||
if (!this._machineReadableString) {
|
||||
this._machineReadableString = this.timeFormatter.formatMachineReadableDate(new Date(this.refEntry.timestamp));
|
||||
this._machineReadableString = this.timeFormatter.formatMachineReadableDate(new Date(this.refEntry.timestamp));
|
||||
}
|
||||
return this._machineReadableString;
|
||||
}
|
||||
|
@ -51,7 +51,6 @@ export class SimpleTile extends ViewModel {
|
||||
|
||||
_updateDateSeparator(prev) {
|
||||
if (prev && prev._date && this._date) {
|
||||
const neededDateSeparator = this._needsDateSeparator;
|
||||
this._needsDateSeparator = 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