This commit is contained in:
Matthew Hodgson 2016-03-21 00:51:45 +00:00
parent 59f599af5c
commit 5bdcb64464

View file

@ -64,6 +64,8 @@ module.exports = React.createClass({
}, },
_recalculateState: function() { _recalculateState: function() {
if (!this.props.room) return;
var topic = this.props.room.currentState.getStateEvents('m.room.topic', ''); var topic = this.props.room.currentState.getStateEvents('m.room.topic', '');
var name = this.props.room.currentState.getStateEvents('m.room.name', ''); var name = this.props.room.currentState.getStateEvents('m.room.name', '');