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

Typescriptify thread events a bit

This commit is contained in:
Dariusz Niemczyk
2021-09-16 15:59:41 +02:00
parent 53bdab7cc8
commit ed68bd4108
3 changed files with 34 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ import {
import { Crypto } from "../crypto";
import { deepSortedObjectEntries } from "../utils";
import { RoomMember } from "./room-member";
import { Thread } from "./thread";
import { Thread, THREAD_EVENTS } from "./thread";
import { IActionsObject } from '../pushprocessor';
import { ReEmitter } from '../ReEmitter';
@@ -1321,7 +1321,7 @@ export class MatrixEvent extends EventEmitter {
*/
public setThread(thread: Thread): void {
this.thread = thread;
this.reEmitter.reEmit(thread, ["Thread.ready", "Thread.update"]);
this.reEmitter.reEmit(thread, [THREAD_EVENTS.ready, THREAD_EVENTS.update]);
}
/**