You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Add room
context to test
This commit is contained in:
@ -41,11 +41,16 @@ const room = new Matrix.Room();
|
||||
const WrappedMessagePanel = React.createClass({
|
||||
childContextTypes: {
|
||||
matrixClient: React.PropTypes.object,
|
||||
room: React.PropTypes.object,
|
||||
},
|
||||
|
||||
getChildContext: function() {
|
||||
return {
|
||||
matrixClient: client,
|
||||
room: {
|
||||
canReact: true,
|
||||
canReply: true,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user