This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/views/rooms Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -383,8 +383,8 @@ export default class EventTile extends React.Component<IProps, IState> {
383
383
constructor ( props : IProps , context : React . ContextType < typeof MatrixClientContext > ) {
384
384
super ( props , context ) ;
385
385
386
- const room = MatrixClientPeg . get ( ) . getRoom ( this . props . mxEvent . getRoomId ( ) ) ;
387
- const thread = room . threads ?. get ( this . props . mxEvent . getId ( ) ) ;
386
+ this . context = context ;
387
+ const thread = this . thread ;
388
388
389
389
this . state = {
390
390
// Whether the action bar is focused.
@@ -630,7 +630,7 @@ export default class EventTile extends React.Component<IProps, IState> {
630
630
* We currently have no reliable way to discover than an event is a thread
631
631
* when we are at the sync stage
632
632
*/
633
- const room = this . context . getRoom ( this . props . mxEvent . getRoomId ( ) ) ;
633
+ const room = MatrixClientPeg . get ( ) . getRoom ( this . props . mxEvent . getRoomId ( ) ) ;
634
634
const thread = room ?. threads . get ( this . props . mxEvent . getId ( ) ) ;
635
635
636
636
if ( ! thread || thread . length === 0 ) {
You can’t perform that action at this time.
0 commit comments