Resolve thread from room Map rather than incorrect ref (#7080)

This commit is contained in:
Germain 2021-11-04 10:27:43 +00:00 committed by GitHub
parent e26abbba72
commit c18c66f4ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
};
private setupThread = (mxEv: MatrixEvent) => {
let thread = mxEv.getThread();
let thread = this.props.room.threads.get(mxEv.getId());
if (!thread) {
const client = MatrixClientPeg.get();
// Do not attach this thread object to the event for now