1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Fix tests

This commit is contained in:
Travis Ralston
2021-04-21 16:45:21 -06:00
parent 4be9c51dad
commit a53696ff5e
3 changed files with 12 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ export default class RoomTile extends React.PureComponent<IProps, IState> {
CommunityPrototypeStore.getUpdateEventName(this.props.room.roomId),
this.onCommunityUpdate,
);
MatrixClientPeg.get()?.off("Room.localEchoUpdated", this.onLocalEchoUpdated);
MatrixClientPeg.get()?.removeListener("Room.localEchoUpdated", this.onLocalEchoUpdated);
}
private onAction = (payload: ActionPayload) => {