You've already forked matrix-js-sdk
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user