Merge branches 'develop' and 't3chguy/prop-types' of github.com:matrix-org/matrix-react-sdk into t3chguy/prop-types

# Conflicts:
#	test/components/structures/MessagePanel-test.js
This commit is contained in:
Michael Telatynski 2019-07-31 12:21:00 +01:00
commit 201d7fb448
4 changed files with 90 additions and 37 deletions

View file

@ -42,11 +42,16 @@ const room = new Matrix.Room();
const WrappedMessagePanel = React.createClass({
childContextTypes: {
matrixClient: PropTypes.object,
room: PropTypes.object,
},
getChildContext: function() {
return {
matrixClient: client,
room: {
canReact: true,
canReply: true,
},
};
},