From 19bb69c49591e8dbb92be099611f30d19d8c9e14 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 1 Mar 2022 17:27:48 -0600 Subject: [PATCH] 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 --- src/domain/session/room/timeline/tiles/BaseMessageTile.js | 4 ---- src/domain/session/room/timeline/tiles/SimpleTile.js | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/BaseMessageTile.js b/src/domain/session/room/timeline/tiles/BaseMessageTile.js index 3952b0a6..6b0b4356 100644 --- a/src/domain/session/room/timeline/tiles/BaseMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseMessageTile.js @@ -49,10 +49,6 @@ export class BaseMessageTile extends SimpleTile { return `https://matrix.to/#/${encodeURIComponent(this.sender)}`; } - get eventId() { - return this._entry.id; - } - get displayName() { return this._entry.displayName || this.sender; } diff --git a/src/domain/session/room/timeline/tiles/SimpleTile.js b/src/domain/session/room/timeline/tiles/SimpleTile.js index 4c1c1de0..39d9794f 100644 --- a/src/domain/session/room/timeline/tiles/SimpleTile.js +++ b/src/domain/session/room/timeline/tiles/SimpleTile.js @@ -44,6 +44,10 @@ export class SimpleTile extends ViewModel { return this._entry.asEventKey(); } + get eventId() { + return this._entry.id; + } + get isPending() { return this._entry.isPending; }