Luke Barnard 2017-08-31 17:52:53 +01:00
parent d84190f58d
commit 0ded4acba0
1 changed files with 3 additions and 0 deletions

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,
};