Skip to content

Commit

Permalink
Remove unused Thread.Ready emit signature
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Feb 16, 2022
1 parent 2910e62 commit e7b91aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/models/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/models/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]);
Expand Down
5 changes: 2 additions & 3 deletions src/models/thread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -103,7 +102,7 @@ export class Thread extends TypedEventEmitter<ThreadEvent> {
?.capabilities?.[RelationType.Thread]?.enabled;
}

onEcho = (event: MatrixEvent) => {
private onEcho = (event: MatrixEvent) => {
if (this.timelineSet.eventIdToTimeline(event.getId())) {
this.emit(ThreadEvent.Update, this);
}
Expand Down

0 comments on commit e7b91aa

Please sign in to comment.