Clarify when room / oobData can/can't be set

This commit is contained in:
David Baker 2016-03-02 11:59:17 +00:00
parent d61f383748
commit 2dbed2aa02

View file

@ -22,6 +22,9 @@ var sdk = require("../../../index");
module.exports = React.createClass({
displayName: 'RoomAvatar',
// Room may be left unset here, but if it is,
// oobData.avatarUrl should be set (else there
// would be nowhere to get the avatar from)
propTypes: {
room: React.PropTypes.object,
oobData: React.PropTypes.object,