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

Add experimental indicators for all threading related features

This commit is contained in:
Germain Souquet
2021-08-19 11:10:20 +01:00
parent 0eb8cbee4d
commit b7a5f81f95
4 changed files with 80 additions and 14 deletions

View File

@@ -193,7 +193,9 @@ export class MatrixEvent extends EventEmitter {
*/
private txnId: string = null;
/** A reference to the event ID making the root of the thread
/**
* @experimental
* A reference to the thread this event belongs to
*/
private thread: Thread = null;
@@ -391,6 +393,7 @@ export class MatrixEvent extends EventEmitter {
}
/**
* @experimental
* Get the event ID of the replied event
*/
public get replyEventId(): string {
@@ -1289,11 +1292,17 @@ export class MatrixEvent extends EventEmitter {
return this.txnId;
}
/**
* @experimental
*/
public setThread(thread: Thread): void {
this.thread = thread;
this.reEmitter.reEmit(thread, ["Thread.ready", "Thread.update"]);
}
/**
* @experimental
*/
public getThread(): Thread {
return this.thread;
}