Make local echo work for threads (#7157)
This commit is contained in:
parent
7f350ae0f4
commit
392c4ad8d9
4 changed files with 17 additions and 5 deletions
|
@ -81,7 +81,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
|||
this.teardownThread();
|
||||
dis.unregister(this.dispatcherRef);
|
||||
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
||||
room.on(ThreadEvent.New, this.onNewThread);
|
||||
room.removeListener(ThreadEvent.New, this.onNewThread);
|
||||
}
|
||||
|
||||
public componentDidUpdate(prevProps) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue