You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-05 15:22:09 +03:00
Improved threads stability (#7639)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -139,7 +139,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||
};
|
||||
|
||||
private setupThread = (mxEv: MatrixEvent) => {
|
||||
let thread = this.props.room.threads.get(mxEv.getId());
|
||||
let thread = this.props.room.threads?.get(mxEv.getId());
|
||||
if (!thread) {
|
||||
thread = this.props.room.createThread([mxEv]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user