Move tileCreator to BaseMessageTile

This commit is contained in:
RMidhunSuresh 2022-01-13 20:41:18 +05:30
parent e1b9b1161d
commit d639e169ec
2 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import {getIdentifierColorNumber, avatarInitials, getAvatarHttpUrl} from "../../
export class BaseMessageTile extends SimpleTile {
constructor(options) {
super(options);
this._tileCreator = options.tileCreator;
this._date = this._entry.timestamp ? new Date(this._entry.timestamp) : null;
this._isContinuation = false;
this._reactions = null;

View File

@ -21,7 +21,6 @@ import {SendStatus} from "../../../../../matrix/room/sending/PendingEvent.js";
export class SimpleTile extends ViewModel {
constructor(options) {
super(options);
this._tileCreator = options.tileCreator;
this._entry = options.entry;
}
// view model props for all subclasses