forked from mystiq/hydrogen-web
Move tileCreator to BaseMessageTile
This commit is contained in:
parent
e1b9b1161d
commit
d639e169ec
2 changed files with 1 additions and 1 deletions
|
@ -21,6 +21,7 @@ import {getIdentifierColorNumber, avatarInitials, getAvatarHttpUrl} from "../../
|
||||||
export class BaseMessageTile extends SimpleTile {
|
export class BaseMessageTile extends SimpleTile {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(options);
|
super(options);
|
||||||
|
this._tileCreator = options.tileCreator;
|
||||||
this._date = this._entry.timestamp ? new Date(this._entry.timestamp) : null;
|
this._date = this._entry.timestamp ? new Date(this._entry.timestamp) : null;
|
||||||
this._isContinuation = false;
|
this._isContinuation = false;
|
||||||
this._reactions = null;
|
this._reactions = null;
|
||||||
|
|
|
@ -21,7 +21,6 @@ import {SendStatus} from "../../../../../matrix/room/sending/PendingEvent.js";
|
||||||
export class SimpleTile extends ViewModel {
|
export class SimpleTile extends ViewModel {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
super(options);
|
super(options);
|
||||||
this._tileCreator = options.tileCreator;
|
|
||||||
this._entry = options.entry;
|
this._entry = options.entry;
|
||||||
}
|
}
|
||||||
// view model props for all subclasses
|
// view model props for all subclasses
|
||||||
|
|
Loading…
Reference in a new issue