Resolve thread from room Map rather than incorrect ref (#7080)
parent
e26abbba72
commit
c18c66f4ed
|
@ -130,7 +130,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||||
};
|
};
|
||||||
|
|
||||||
private setupThread = (mxEv: MatrixEvent) => {
|
private setupThread = (mxEv: MatrixEvent) => {
|
||||||
let thread = mxEv.getThread();
|
let thread = this.props.room.threads.get(mxEv.getId());
|
||||||
if (!thread) {
|
if (!thread) {
|
||||||
const client = MatrixClientPeg.get();
|
const client = MatrixClientPeg.get();
|
||||||
// Do not attach this thread object to the event for now
|
// Do not attach this thread object to the event for now
|
||||||
|
|
Loading…
Reference in New Issue