From 06961ff6930afc0450e28f3d7b8d052c02b996e3 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 4 Aug 2021 15:30:35 -0700 Subject: [PATCH] Add isReply flag to entries --- src/matrix/room/timeline/entries/BaseEventEntry.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/matrix/room/timeline/entries/BaseEventEntry.js b/src/matrix/room/timeline/entries/BaseEventEntry.js index 6893b890..b6850540 100644 --- a/src/matrix/room/timeline/entries/BaseEventEntry.js +++ b/src/matrix/room/timeline/entries/BaseEventEntry.js @@ -29,6 +29,10 @@ export class BaseEventEntry extends BaseEntry { this._pendingAnnotations = null; } + get isReply() { + return !!this.relation?.["m.in_reply_to"]; + } + get isRedacting() { return !!this._pendingRedactions; }