From 4bd169fd89d6a9b25fab53be0078cd18d675adc9 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 25 Feb 2022 02:07:42 -0600 Subject: [PATCH] Add eventId getter --- src/domain/session/room/timeline/tiles/BaseMessageTile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domain/session/room/timeline/tiles/BaseMessageTile.js b/src/domain/session/room/timeline/tiles/BaseMessageTile.js index 6b0b4356..3952b0a6 100644 --- a/src/domain/session/room/timeline/tiles/BaseMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseMessageTile.js @@ -49,6 +49,10 @@ 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; }