Add room
context to test
This commit is contained in:
parent
ddf558b3ed
commit
c338f8bf1f
2 changed files with 7 additions and 4 deletions
|
@ -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,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue