Move eventId getter to SimpleTile which is inherited by a few other tiles

See https://github.com/vector-im/hydrogen-web/pull/690#discussion_r817007275
This commit is contained in:
Eric Eastwood 2022-03-01 17:27:48 -06:00
parent 4bd169fd89
commit 19bb69c495
2 changed files with 4 additions and 4 deletions

View file

@ -49,10 +49,6 @@ export class BaseMessageTile extends SimpleTile {
return `https://matrix.to/#/${encodeURIComponent(this.sender)}`; return `https://matrix.to/#/${encodeURIComponent(this.sender)}`;
} }
get eventId() {
return this._entry.id;
}
get displayName() { get displayName() {
return this._entry.displayName || this.sender; return this._entry.displayName || this.sender;
} }

View file

@ -44,6 +44,10 @@ export class SimpleTile extends ViewModel {
return this._entry.asEventKey(); return this._entry.asEventKey();
} }
get eventId() {
return this._entry.id;
}
get isPending() { get isPending() {
return this._entry.isPending; return this._entry.isPending;
} }