Add isReply flag to entries

This commit is contained in:
Danila Fedorin 2021-08-04 15:30:35 -07:00
parent 960e3ec469
commit 06961ff693

View file

@ -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;
}