This commit is contained in:
Luke Barnard 2017-08-31 17:52:53 +01:00
parent d84190f58d
commit 0ded4acba0

View file

@ -187,6 +187,9 @@ Flair.propTypes = {
userId: PropTypes.string,
};
// TODO: We've decided that all components should follow this pattern, which means removing withMatrixClient and using
// this.context.matrixClient everywhere instead of this.props.matrixClient.
// See https://github.com/vector-im/riot-web/issues/4951.
Flair.contextTypes = {
matrixClient: React.PropTypes.instanceOf(MatrixClient).isRequired,
};