From 0ded4acba02d5b8d915241c3c63f75b0370f50cf Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 31 Aug 2017 17:52:53 +0100 Subject: [PATCH] Mark TODO for https://github.com/vector-im/riot-web/issues/4951 --- src/components/views/elements/Flair.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/views/elements/Flair.js b/src/components/views/elements/Flair.js index cd0acd92f8..9abea0d202 100644 --- a/src/components/views/elements/Flair.js +++ b/src/components/views/elements/Flair.js @@ -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, };