diff --git a/src/models/event.ts b/src/models/event.ts index 9b04ae0996c..7a7a3567220 100644 --- a/src/models/event.ts +++ b/src/models/event.ts @@ -1559,7 +1559,7 @@ export class MatrixEvent extends EventEmitter { public setThread(thread: Thread): void { this.thread = thread; this.setThreadId(thread.id); - this.reEmitter.reEmit(thread, [ThreadEvent.Ready, ThreadEvent.Update]); + this.reEmitter.reEmit(thread, [ThreadEvent.Update]); } /** diff --git a/src/models/room.ts b/src/models/room.ts index b9f79ba8804..228e5264417 100644 --- a/src/models/room.ts +++ b/src/models/room.ts @@ -1413,7 +1413,6 @@ export class Room extends EventEmitter { this.threads.set(thread.id, thread); this.reEmitter.reEmit(thread, [ ThreadEvent.Update, - ThreadEvent.Ready, "Room.timeline", "Room.timelineReset", ]); diff --git a/src/models/thread.ts b/src/models/thread.ts index 9465cc6a988..4ef80128308 100644 --- a/src/models/thread.ts +++ b/src/models/thread.ts @@ -27,10 +27,9 @@ import { RoomState } from "./room-state"; export enum ThreadEvent { New = "Thread.new", - Ready = "Thread.ready", Update = "Thread.update", NewReply = "Thread.newReply", - ViewThread = "Thred.viewThread", + ViewThread = "Thread.viewThread", } interface IThreadOpts { @@ -103,7 +102,7 @@ export class Thread extends TypedEventEmitter { ?.capabilities?.[RelationType.Thread]?.enabled; } - onEcho = (event: MatrixEvent) => { + private onEcho = (event: MatrixEvent) => { if (this.timelineSet.eventIdToTimeline(event.getId())) { this.emit(ThreadEvent.Update, this); }