From c3784d406b77f07eff9a0807de78265bdb318579 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 13 Jan 2022 21:05:57 +0530 Subject: [PATCH] Move getter to this PR --- src/matrix/room/timeline/entries/EventEntry.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/matrix/room/timeline/entries/EventEntry.js b/src/matrix/room/timeline/entries/EventEntry.js index 7b957e01..3d9c982b 100644 --- a/src/matrix/room/timeline/entries/EventEntry.js +++ b/src/matrix/room/timeline/entries/EventEntry.js @@ -124,6 +124,13 @@ export class EventEntry extends BaseEventEntry { return getRelatedEventId(this.event); } + get threadEventId() { + if (this.isThread) { + return this.relation?.event_id; + } + return null; + } + get isRedacted() { return super.isRedacted || isRedacted(this._eventEntry.event); }