File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -1748,7 +1748,7 @@ export class Room extends EventEmitter {
1748
1748
// types X Y Z to the timeline".
1749
1749
this . addLiveEvent ( events [ i ] , duplicateStrategy , fromCache ) ;
1750
1750
const thread = this . threads . get ( events [ i ] . getId ( ) ) ;
1751
- if ( thread && ! thread . ready ) {
1751
+ if ( thread ) {
1752
1752
thread . addEvent ( events [ i ] , true ) ;
1753
1753
}
1754
1754
}
Original file line number Diff line number Diff line change @@ -107,9 +107,7 @@ export class Thread extends TypedEventEmitter<ThreadEvent> {
107
107
this . _currentUserParticipated = true ;
108
108
}
109
109
110
- if ( this . ready ) {
111
- this . client . decryptEventIfNeeded ( event , { } ) ;
112
- }
110
+ await this . client . decryptEventIfNeeded ( event , { } ) ;
113
111
this . emit ( ThreadEvent . Update , this ) ;
114
112
}
115
113
@@ -129,13 +127,6 @@ export class Thread extends TypedEventEmitter<ThreadEvent> {
129
127
return threadReplies [ threadReplies . length - 1 ] ;
130
128
}
131
129
132
- /**
133
- * Determines thread's ready status
134
- */
135
- public get ready ( ) : boolean {
136
- return this . rootEvent !== undefined ;
137
- }
138
-
139
130
/**
140
131
* The thread ID, which is the same as the root event ID
141
132
*/
You can’t perform that action at this time.
0 commit comments