mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Move tileCreator to BaseMessageTile
This commit is contained in:
parent
e1b9b1161d
commit
d639e169ec
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user