1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Move relations and redactions to thread timeline

This commit is contained in:
Germain Souquet
2021-09-10 09:21:25 +01:00
parent 2cdea36abf
commit f40d0d24c7
4 changed files with 22 additions and 48 deletions

View File

@@ -420,6 +420,11 @@ export class MatrixEvent extends EventEmitter {
|| this.thread instanceof Thread;
}
public get parentEventId(): string {
return this.replyEventId
|| this.getWireContent()["m.relates_to"]?.event_id;
}
/**
* Get the previous event content JSON. This will only return something for
* state events which exist in the timeline.